Reply to Re: resampling images

Your name:

Reply:


Posted by Tim Roberts on 10/27/07 06:58

Daniel <d_pineault@hotmail.com> wrote:
>
>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 size (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.

What format? The file size is determined by the width, height, and
compression factor. Uncompressed images of a particular width and height
will always be the same size. With compressed images, like JPEG, you can
tweak the compression quality to adjust the file size, within certain
limits.

So, basically, you should choose your dimensions so that the size is
roughly in the range you want.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

[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

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