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, "$tmpImageDownl oadDir/"
.. $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:
The line:
[PHP]
eval('image' . $extArray[$type] . '($newImage,
"$this->thumbLocationP ath/$this->fileName", $thumbDimension Int);');
[/PHP]
I've taken out the reference to $thumbDimension Int, 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, "$tmpImageDownl oadDir/"
.. $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() in
/www/html/mu-spin/image_catalog/include/classes.inc.php (2262) :
eval()'d code on line 1
/www/html/mu-spin/image_catalog/include/classes.inc.php (2262) :
eval()'d code on line 1
[PHP]
eval('image' . $extArray[$type] . '($newImage,
"$this->thumbLocationP ath/$this->fileName", $thumbDimension Int);');
[/PHP]
I've taken out the reference to $thumbDimension Int, 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
Comment