RE: photo file size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2008-10-01 at 09:44 -0700, Warren Vail wrote:
> The GD library has a number of functions that alter the size of an image,
> and converting from one file type to another can sometimes be used to reduce
> file size without reducing image size, but to do so it must give up detail
> (i.e. image quality).
> 
> This is what is meant by the expression, "There is no such thing as a free
> lunch".

Sometimes though you can trade CPU time for space though. Hence why some
compression algorithms offer compression strength values. Look at gzip
for example. This absolutely has to be lossless, but you can get more
compression by upping the compression strength at the expense of CPU
time. Depending on one's usage this can certainly seem like a free
lunch :)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux