I've been asked to supply photos in jpg format not only at a specific size,
320x320, but a max 25K. A random sample of photos re-sized with quality
level 95 come out anywhere from 20K up to 60K. Even reducing the quality
level to 50, some still come out at 30K. Does anyone know if there's any
software that would let me set the max file size and work out the best way
to reduce the photo? Or any other advice to keep within the 25K limit?
Typical properties of the original photos are 1024x685 (which would reduce
to the relevant 320x??? figure), 96dpi h&v, bit depth 24.
On Tue, 05 Feb 2008 19:23:10 GMT, "Brian" <brian@nospam_tobas.com> wrote
in <yI2qj.1444$j95.822@newsfe3-win.ntli.net>:
>I've been asked to supply photos in jpg format not only at a specific size,
>320x320, but a max 25K. A random sample of photos re-sized with quality
>level 95 come out anywhere from 20K up to 60K. Even reducing the quality
>level to 50, some still come out at 30K. Does anyone know if there's any
>software that would let me set the max file size and work out the best way
>to reduce the photo? Or any other advice to keep within the 25K limit?
>
>Typical properties of the original photos are 1024x685 (which would reduce
>to the relevant 320x??? figure), 96dpi h&v, bit depth 24.
Check out (free) ImageMagick <http://www.imagemagick.org/> -- it has a
wealth of options for image conversion. You could run different passes
at different quality levels to check file sizes. Or you could write a
PerlMagick script to automate the process of tweaking quality to get as
close as possible to 25K.
--
Best regards,
John Navas
Panasonic DMC-FZ8 (and several others)
> I've been asked to supply photos in jpg format not only at a specific size,
> 320x320, but a max 25K. A random sample of photos re-sized with quality
> level 95 come out anywhere from 20K up to 60K. Even reducing the quality
> level to 50, some still come out at 30K. Does anyone know if there's any
> software that would let me set the max file size and work out the best way
> to reduce the photo? Or any other advice to keep within the 25K limit?
>
> Typical properties of the original photos are 1024x685 (which would reduce
> to the relevant 320x??? figure), 96dpi h&v, bit depth 24.
>
> Brian.
JpegSizer lets you specify the pixel dimensions AND the file size. It
figures out automatically how much JPEG compression is needed to achieve
your file size.
"Pete" <spam@nowhere.com> wrote in message
news:qfi46zqq8dfi.1dbeyp68e2bb.dlg@40tude.net...
> On Tue, 05 Feb 2008 19:23:10 GMT, Brian wrote:
>
>> I've been asked to supply photos in jpg format not only at a specific
>> size,
>> 320x320, but a max 25K. A random sample of photos re-sized with quality
>> level 95 come out anywhere from 20K up to 60K. Even reducing the quality
>> level to 50, some still come out at 30K. Does anyone know if there's any
>> software that would let me set the max file size and work out the best
>> way
>> to reduce the photo? Or any other advice to keep within the 25K limit?
>>
>> Typical properties of the original photos are 1024x685 (which would
>> reduce
>> to the relevant 320x??? figure), 96dpi h&v, bit depth 24.
>>
>> Brian.
>
> JpegSizer lets you specify the pixel dimensions AND the file size. It
> figures out automatically how much JPEG compression is needed to achieve
> your file size.
>
> Details here:
>
> http://tinyurl.com/2jj7q2
>
> Hope this helps.
>
> Pete
Thanks, looks interesting and certainly does the job.
Also, be sure that when you run the photos through resizing,
you aren't saving EXIF or other extraneous data that increases
the output file size. Some conversion programs do that by
default if you don't tell them not to.
> Also, be sure that when you run the photos through resizing,
> you aren't saving EXIF or other extraneous data that increases
> the output file size. Some conversion programs do that by
> default if you don't tell them not to.
>
Google "Remove EXIF" - there are several solutions. ~Ray
"Ray Paseur" <Ray.Paseur@MightUseGMail.com> wrote in message
news:RU7qj.26141$E01.16932@newsfe22.lga...
> Alan Meyer <ameyer2@yahoo.com> wrote in news:943f3191-6b6f-49f0-a6c4-
> 5205f28c8a2d@m34g2000hsf.googlegroups.com:
>
>> Also, be sure that when you run the photos through resizing,
>> you aren't saving EXIF or other extraneous data that increases
>> the output file size. Some conversion programs do that by
>> default if you don't tell them not to.
>>
>
> Google "Remove EXIF" - there are several solutions. ~Ray
I've tried jpegsizer and it seems to do what I want, including removing the
exif data. If I decide to take it beyond the trial version it would appear
capable of producing several formats in one pass - the site I'm providing
them for does nothing itself and needs up to 7 different sizes depending
what article they're being used for :-(
Brian wrote:
> I've been asked to supply photos in jpg format not only at a specific
> size, 320x320, but a max 25K. A random sample of photos re-sized with
> quality level 95 come out anywhere from 20K up to 60K. Even reducing the
> quality level to 50, some still come out at 30K. Does anyone know if
> there's any software that would let me set the max file size and work
> out the best way to reduce the photo? Or any other advice to keep within
> the 25K limit?
I guess the only way to do that is to write a script that steps through
the different compression levels (from highest to lowest) until the
desired file size is reached. You can use ImageMagick for the image
processing, and any decent scripting language should do.