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
  embedding icm profile in a psd generated by gimp Richar_d 1 78 Oct 13, 2017 12:00
Last Post: paynekj
  Gimp GUI icons missed massimobarbieri 1 211 Aug 23, 2017 17:51
Last Post: ofnuts
  why gimp in mac has bad performance mcheung63 1 212 Aug 20, 2017 10:13
Last Post: ythgilb
  Issue viewing GIMP-modified picture JuniorPear 1 287 Jul 6, 2017 05:03
Last Post: ythgilb
  GIMP Taking Too Long to Start (Fonts) Seta 2 341 Jun 20, 2017 16:10
Last Post: Seta

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS