Photoshop has a function called optimize to file size which tries to fit an
image to some given file size. Because I need to make sure no images on a
site I'm working on are larger than X KB I need something similar so that
users don't have to worry so much about image file size. Does anyone know
of a way to do this, preferably using ImageMagick or GD?
Doing several calls to ImageMagick with different optimize settings is a not
a good option.
André Nęss