|
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.
Navigation:
[Reply to this message]
|