Post Reply 

Imagemagick is not compressing images like GIMP

Aug 23, 2014, 04:37
Post: #1
Imagemagick is not compressing images like GIMP
How would I replicate GIMPS's default PNG export options with Imagemagick?
I'm using mogrify:
mogrify -define "png:compression-level=9" -format png *.GIF

When I compare the images converted with GIMP to the one converted with Imagemagick the GIMP converted ones are always smaller in file size
Find all posts by this user
Quote this message in a reply
Aug 23, 2014, 08:23 (This post was last modified: Aug 23, 2014 08:38 by rich2005.)
Post: #2
RE: Imagemagick is not compressing images like GIMP
(Aug 23, 2014 04:37)rublacava Wrote:  When I compare the images converted with GIMP to the one converted with Imagemagick the GIMP converted ones are always smaller in file size
Strange, it is usually the other way round.

For a small number of colours, IM will create an indexed png unless the colors level is set higher.

Something like this is closer to a Gimp png with my test image, but not what you want
mogrify -format png -define png:color-type=2 -depth 24 *.gif
where: type 2 = RGB : type 3 = indexed : type 6 = RGBA


for smaller, try simple, as a starting point.
Code:
mogrify -format png -define png:color-type=3 *.gif

mogrify is a very dangerous command, so I hope you have backup files.
The syntax for IM has changed a bit for compression and my notes are out of date.
Best ask the question on th IM users forum.

edit: If you have lots of files to process and want to use Gimp, try the BIMP batch plugin.

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  why gimp in mac has bad performance mcheung63 1 44 Yesterday 10:13
Last Post: ythgilb
  Issue viewing GIMP-modified picture JuniorPear 1 194 Jul 6, 2017 05:03
Last Post: ythgilb
  GIMP Taking Too Long to Start (Fonts) Seta 2 208 Jun 20, 2017 16:10
Last Post: Seta
  Problem with pressure on gimp (huion h610) protosd3 18 5,076 Jun 8, 2017 19:20
Last Post: John Penfold
Question Gimp 2.8 Startup Keeps Not Responding lolly325 38 22,396 Jun 5, 2017 15:46
Last Post: blighty

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS