Karjala on  wrote...
| I use a Perl script to resize pictures and save them as jpg files, but 
| often the filesizes are unacceptably large.
| 
| Is there a way to set the compression level, or even to find the right 
| compression level to get a certain filesize?
| 
| I've tried playing with some compression level options I found on the 
| web but nothing absolutely changes. Was something supposed to change?
| 
Use  -quality setting for JPEG images.

You can not determine a quality to get a specific filesize, except by
trying it.  The best way is to say try 75% and see the result
if to large reduce by 10%, if two small increase.  Then do a binary
search to find the quality that best matches what file size you
want. Shouldn't take more than 5 to 6 trys to figure it out.

I have added this to IM examples  JPEG format notes...
   http://www.cit.gu.edu.au/~anthony/graphics/imagick6/formats/#jpg_write


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   Zatheris warn,  but,  no one listens to Zatheris,  No!
                               -- Zatheris,  Bablyon 5, "War Without End"
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to