| Remarque importante... | | De Touby Vang - Lundi 15 Juillet 2002 à 18:59
imagecreatetruecolor et imagecopyresampled sont mieux adaptées si l'on possede la nouvelle version de php... car à l'époque où j'ai cherché à realiser ce script j'etais en php 3, et ca marchait tres bien...
This functions were added in PHP 4.0.6 and requires GD 2.0.1 or later
ImageCreateTrueColor() is used to create an image resource with an unlimited number of colors, which is useful when manipulating JPEG images, for
example.
Imagecopyresampled() copies a rectangular portion of one image to another image, smoothly interpolating pixel values so that, in particular, reducing the size of an image still retains a great deal of clarity.
Avec PHP 4: ImageCreate() is used to create an image resource with a 256 color palette, sometimes called indexed color.
Il est donc fortement conseillé d'utiliser imagecreatetruecolor et imagecopyresampled.
Merci à Jaad pour sa remarque.
|
|