RE: [PHP] photo file size

From: Date: Wed, 01 Oct 2008 16:55:39 +0000
Subject: RE: [PHP] photo file size
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-281294@lists.php.net to get a copy of this message
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

« previous php.general (#281294) next »