Page is a not externally linkable
- Code, Content, and Presentation
-- Site Graphics and Multimedia Design
---- create a JPG with precise filesize. how?


httpwebwitch - 5:11 pm on Jun 17, 2009 (gmt 0)


I'm polishing up a feature that lets a user upload a photo.

I'm putting a size limit on the uploads: 3Mb. I think that's a reasonable size limit - big enough for most digital cameras, but not so big as to allow outrageously high resolution graphics. Correct me if I'm wrong.

To test it, I need to create JPG files, where:
1) the filesize is exactly 3Mb
2) the filesize is slightly more than 3Mb (2,999,999 bytes)
3) the filesize is slightly less than 3Mb (3,000,001 bytes)

Any hints how to do this?
fyi I do have PhotoShop


Thread source:: http://www.webmasterworld.com/graphics_multimedia/3935347.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com