Skip to content

Instantly share code, notes, and snippets.

@cyborch
Created November 25, 2010 06:05
Show Gist options
  • Save cyborch/714979 to your computer and use it in GitHub Desktop.
Save cyborch/714979 to your computer and use it in GitHub Desktop.
ImageMagick parameters which outdoes PunyPNG at compressing their own example png.
convert original_image.png +dither -deconstruct -layers optimize-transparency -matte -depth 7 \( -clone 0--1 -background none +append -colors 65536 -unique-colors -write mpr:cmap +delete \) -map mpr:cmap better_than_puny.png
@holm
Copy link

holm commented Dec 28, 2010

This seems to be a lot of commands for handling animated gifs. -deconstruct -layers optimize-transparency -clone 0--1 +append is AFAIK only relevant for animated gifs. Reducing the colors always helps, but that is not lossless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment