Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Marcel71
Posts: 49 Joined: 2011-04-13T13:57:34-07:00
Authentication code: 8675308
Post
by Marcel71 » 2014-12-22T05:55:17-07:00
Hi All,
I found that you can resize a jpg file to a maximum file size by:
Code: Select all
convert image -define jpeg:extent=512kb newimage.jpg
Is there also such a function for animated gifs?
Marcel71
Posts: 49 Joined: 2011-04-13T13:57:34-07:00
Authentication code: 8675308
Post
by Marcel71 » 2014-12-22T07:01:59-07:00
Okay, after some research (and looked at Fred's scripts) i see it can only be done with trial and error.
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 2014-12-22T07:07:45-07:00
JPEG files have a trade-off between image quality and file size. For animation, some formats (such as MPG) also have this trade-off. GIF does not.