setting maximum file size

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
ivobrabec

setting maximum file size

Post by ivobrabec »

Hi,
i have a problem transforming pictures from users to some reasonable file size.
Is there some easy way how to make from 6MB picture for example 1MB picture? It can loose some quality and color.....

I could only change the parameters but i have no filesize guaranty, the only thing i came up was to check after the transformatin the filesize and if not sufficient to make another transformation with less resolution etc...

Thanks
Ivo
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: setting maximum file size

Post by mkoppanen »

Hi,

I don't know a direct way of doing that.
Mikko Koppanen
My blog: http://valokuva.org
ivobrabec

Re: setting maximum file size

Post by ivobrabec »

thanks anyway, at least i will not feel stupid when doing it the long way...
Ivo
Post Reply