good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How to create JPEG of specified sizeby ikegami (Patriarch) |
on Jul 25, 2007 at 15:04 UTC ( [id://628697]=note: print w/replies, xml ) | Need Help?? |
Does the fake have to be a valid JPEG file, or just a file whose name ends with .jpg? The latter would be particularly easy to do. If you want to produce a valid JPEG of a certain size, you play with the quality setting. It's trial an error. The amount of colours in the image will have an impact. You could also add Update: JFIF is the .jpg file format. EXIF is what the tags are called.
In Section
Seekers of Perl Wisdom
|
|