![]() ![]() Although, it needs to be mentioned that by following the tutorial here, you should be able to get the tool working using Command Line easily. OptiPNG is currently only available as a Command Line utility, so if you are not comfortable using Command Line, you might skip this step. In addition, the program also performs PNG integrity checks and corrections. OptiPNG is an utility that re-compresses image files to a smaller size. Step 3: Optimize using OptiPNG Optimizer (Optional) The size of the image is 3.97KB which is a reduction of 1.22KB and we haven't even started using PNG compression tools yet! Posterized and Transparency Reduced - 3.97KB Here is the image after I reduced the transparency depth. This will automatically save the changes to the main image. I have found this to work best somewhere between 9 and 20 values.ģ.) Recompose the Image: Recompose the image by going to Colors->Components->Recompose. Reduce the colors to an acceptable minimum using the posterization method discussed above. You may consider hiding the other Red, Blue and Green layers and only keep the Alpha layer visible as shown in the image below. Make sure that the 'Decompose to Layers' is checked and select the Color Model as 'RBGA' from the drop down.Ģ.) Reduce the Alpha Channel: Making sure that the Alpha Chanel layer is selected, go to Colors->Posterize. This can be done as follows:ġ.) Decompose the Image: Decompose the image into its respective RGBA layers by selecting Colors ->Components->Decompose. PNG images have an additional transparency layer which can be scaled like color depth. Step 2: Adjust transparency Depth using GIMP (Optional) The size of the following image is 5.19KB which is a reduction of 1.22Kb. Here's the same image after posterization. Make sure to delete this white background layer once you are done postering as saving the image with the background layer will actually increase the image size. This will help you view the image better. ![]() Tip: If your PNG image is not visible properly because of the transparent background, temporarily create a white background layer in GIMP and add it below the main image layer. You can consider unchecking 'Save Creation Time' and 'Save Background Color' while exporting. Once done, export the image (File > Export as). Remember, the lower the level, the smaller will be the image. This generally happens between levels 30 and 60. Now slide the 'Posterize Levels' slider to a number where the image looks just about right. Make sure that Preview box is checked so you can view the changes as they happen. If you don't have GIMP, you can download and install it free from Gimp.Org.įor this example, I am going to use the following unoptimzed PNG image which is 6.41KB. GIMP is an amazing photo editing software which is often considered the open source equivalent of Photoshop. To posterize the image, we are going to use an Open Source software named GIMP. You can easily achieve a 5% to 10% reduction in the overall size of the image by posterizing it. Posterizing an image helps reduce the total number of colors used in the image thereby reducing the image size. Now let's look at these steps in detail with an example. Step 5: Further optimize the image using PNGOUTwin (Optional). Step 4: Quantize and Compress the Image using PNGQuant Lossy PNG Compressor. Step 3: Optimize using OptiPNG Optimizer (Optional). Step 2: Adjust transparency Depth using GIMP. But if your image is very large, like for instance, a large logo or background image, then you can get the optimal results by following all these steps. In-fact as I said above, PNGQuant alone should be more than enough to get your images super small. Some of these steps are optional and I have marked them so. ![]() So here are the steps that I follow to get the best possible results. But if you want further compression, you will need to combine PNGQuant with some other tools and procedures which I will be discussing in this article. This program alone is enough to reduce your PNG image size by over 50%. Of all the free tools on the internet, the best one I have found so far is PNGQuant. Best Open Source PNG Image Compression Tool In this article, I will be discussing the tools I use and in what order to get the best possible results. Thankfully there are a host of free open source PNG quantization and compression tools available on the internet that do an amazing job of reducing the overall size of the PNG file.īy using a combination of these tools you should be able to reduce the file size by over 70% without much lose in quality. Optimizing your PNG images can take a little more effort as compared to optimizing JPEG images because of the presence of the additional alpha transparency channel. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |