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
  Gimp will not Start Podoowski 18 4,700 Yesterday 20:34
Last Post: spiderplant0
  printable art with gimp alin33 1 44 Jan 13, 2018 22:04
Last Post: paynekj
  Gimp 2.8 does not recognize my tablet Uuni 28 25,495 Dec 31, 2017 09:12
Last Post: ythgilb
  Gimp silly problem in Macs animeshsaxena 27 30,070 Dec 13, 2017 17:12
Last Post: paynekj
  black square in the gimp's gimp Elimelech 1 189 Dec 9, 2017 12:26
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS