Image Compression


ScriptPNG is a tool for front-end engineers that can reduce PNG files sizes automatically by doing lossless or lossy compression.

Download Now

Version: 28/06/2015 - ZIP file, For Windows XP, Vista, 7 ou 8 - 1.1 MB - Free

How to use

Drag and drop on script

Just drag-and-drop files or folder on the script!


Lossless PNG Optimization

Lossless options for PNG
KeyOptionWhat it does
1 Fast Some PNG reductions, unnecessary data deletion.
2 Intense Common reductions and 7-zip deflation.
3 High More reductions and 7-zip deflation.

ScriptPNG is designed to be faster than before. However, if you don't care about time and want better lossless compression, try out the experimental pngslim.

Lossy PNG Optimization

Lossy options for PNG
KeyOptionWhat it does
8 PNG8+A Convert to PNG8 (keep transparency), optimization and 7-zip deflation.
9 PNG24+A Converts data for a specific filter. See demonstration.

PNG Optimization example

PNG24+A - Blurizes the image with averaging filter
true colors9 PNG24+A
Colors on a palette with pencil Colors on a palette with pencil - lossy compression
80,2 KB 36,0 KB

Script tweaks

You can edit the script with a simple text editor. Then, find the corresponding line and change values to custom it. Here's default values and variables:


set "autorun=0"

Line 3: Replace the value 0 to 1 to make the script in autorun mode. Then, it will not ask the options you want to run and will use the default value.

PNG default value

set "autorun_option=1"

Line 4: The default value for PNG optimization. You will find option by executing the script. For example, if you modify this option to 9, the default value will be PNG24+A.

Close automatically

set "close_script_end=0"

Line 5: The default value for auto-closing the script at the end of process. If you turn it to 1, then the script will not wait and close automatically when all jobs are done.

Conversion to PNG-8 quality

set "lossy_png8_quality=1"

Line 7: Here you can set the quality settings for PNG-8 conversion. The default value is also the best setting to keep image quality. This value can be 1 to 11, and 11 should be faster but lower quality result.

Custom PNG-8 dithering

set "lossy_png8_dithering=1"

Line 8: By default, the conversion to PNG-8 will use Floyd-Steinberg dithering to keep image integrity. If you turn it to 0, it will disable the dithering: you will get smaller files, but sometimes with quality loss.

PNG24+A quality

set "lossy_png24_quality=6"

Line 9: The default value will try to preserve image quality and give most of the time the best quality / size ratio. However, you can set a higher value to get a smaller file, up to 100.