Reply to Re: resampling images

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация