[nycphp-talk] Creatings Thumbnails with GD
billy reisinger
billy.reisinger at gmail.com
Thu Dec 1 17:35:10 EST 2005
in the line very near the bottom:
imagejpeg($dest);
this function takes a third parameter, which is an integer (1-100)
representing the quality of the output file. (The second parameter is
optional, skip it with two apostrophes) Of course, the higher the number,
the higher quality the image is - of course, along with the filesize being
larger, too.
I use around 50 - 60 for thumbnails, because, c'mon, the image quality of a
thumbnail is really NOT that important. It's the large image where quality
counts.
anyway, change the line to something like this:
imagejpeg($dest, '', 80);
Note that the imagepng() function does not support an output quality
parameter, nor does the imagegif() function. So if you want to adjust image
quality, stick with jpg's.
Cheers.
On 12/1/05, Jeff Loiselle <jeff.loiselle at gmail.com> wrote:
>
> is there any way i can raise the output quality on this thumbnail
> function?
>
> ---
> Jeff Loiselle
> Web Developer, Musician, and Observer
> http://jeff.loiselles.com
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
>
--
Billy Reisinger
billy.reisinger at gmail.com
410.736.0148
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20051201/1576d166/attachment.html>
More information about the talk
mailing list