note 32929 added to ref.image
| From: | coucheney at noos dot fr | Date: | Wed, 11 Jun 2003 09:13:05 +0000 |
| Subject: | note 32929 added to ref.image | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50160@lists.php.net to get a copy of this message | ||
I had a big trouble trying to create thumbnails of jpeg/png pictures width imagecreate().
The colors of the pictures were seriously damaged in the newly created thumbnails, a bit like if the
image was compressed in jpeg with a 10% quality compression.
The probleme is very easy to solve, by using imagecreatetruecolor() instead if imagecreate().
Using imagecreatetruecolor(); will "protect" the original colors (I mean do a correct
compression/color resolving) and will be able to works with any pic modification function
(imagecopyresized(), etc...)
----
Manual Page -- http://www.php.net/manual/en/ref.image.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32929
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32929&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32929&report=yes