GIF is a format for the exchange of images. It is a popular format graphics. Capable of storing compressed data without loss of quality in the format of not more than 256 colors.


Image Gif Image

re: http://us4.php.net/manual/en/function.imagegif.php
I have one class method that resizes images, including GIF images, and
works just fine doing so, even up to this line:
[PHP]
eval('image' . $extArray[$type] . '($newImage, '$tmpImageDownloadDir/'
.. $this->fileName);'); // SAVE TO TEMPORARY IMAGE DIR FOR
DOWNLOAD
[/PHP]
(yes even with.. EVAL!)
However, in another class method, THIS line produces the following
error:
[PHP]
eval('image' . $extArray[$type] . '($newImage,
'$this->thumbLocationPath/$this->fileName', $thumbDimensionInt);');
[/PHP]
I've taken out the reference to $thumbDimensionInt, to no avail. Same
exact error every time, but ONLY for GIF images.
But why is it the nearly-identical line in one class method resizes
GIF images, but the near very same line in another class method
(creates thumbnails) bombs for GIF images?
Both work just fine for all other images (i.e., JPG, TIFF, PNG, SWF,
BMP, etc.)
Thanx
Phil
I have one class method that resizes images, including GIF images, and
works just fine doing so, even up to this line:
[PHP]
eval('image' . $extArray[$type] . '($newImage, '$tmpImageDownloadDir/'
.. $this->fileName);'); // SAVE TO TEMPORARY IMAGE DIR FOR
DOWNLOAD
[/PHP]
(yes even with.. EVAL!)
However, in another class method, THIS line produces the following
error:
Fatal error: Call to undefined function: imagegif() inThe line:
/www/html/mu-spin/image_catalog/include/classes.inc.php(2262) :
eval()'d code on line 1
[PHP]
eval('image' . $extArray[$type] . '($newImage,
'$this->thumbLocationPath/$this->fileName', $thumbDimensionInt);');
[/PHP]
I've taken out the reference to $thumbDimensionInt, to no avail. Same
exact error every time, but ONLY for GIF images.
But why is it the nearly-identical line in one class method resizes
GIF images, but the near very same line in another class method
(creates thumbnails) bombs for GIF images?
Both work just fine for all other images (i.e., JPG, TIFF, PNG, SWF,
BMP, etc.)
Thanx
Phil

Image Gift Tag
Personalized gifts for all events and occasions! Fast Shipping + Free Personalization! Find personalized, unique gift ideas for your special event! At Image Gift, we offer those unique gifts that are going to set your presents a part from the crowd. Any possible item you could want customized - We do it! We have Cell Phone Cases, iPad and tablet cases.
