|
Posted by petersprc on 10/27/07 08:34
Hi,
You can use the Imagemagick convert command with -resample, -quality,
and -sampling-factor to adjust the compression. See the docs here:
http://imagemagick.org/script/command-line-options.php#resample
For GD, you can use this nifty function that includes a quality
parameter:
http://us.php.net/manual/en/function.imagecopyresampled.php#77679
On Oct 26, 5:00 pm, Daniel <d_pinea...@hotmail.com> wrote:
> Hello,
>
> I was wondering if I was missing something simple, an existing
> function, that allows me to resample image in size (width and height)
> as well as the file size as well.
>
> What I am trying to do is automate importing images and standardize
> the saved version to a typical dimension and maximum file sie (80Kb).
>
> I have found numerous scripts for resample the dimensions of an image
> but file size seems trickier to find or I'm not looking in the right
> places.
>
> Any pointers, help is greatly appreciated.
[Back to original message]
|