Tuesday 01 July 2003 5:07:21 am
I have a strange image problem. When I upload an image using an ez web form the image corrupts and I only get the top few lines of the image followed by some random squares then the rest of the image is black. Image magic is installed and I can test it by typing "convert file.jpg file.png" in the command shell. It happily converts the file from jpeg to png without any errors. I can convert to gif, png, jpeg, tiff all without any problems so it's not a corrupted installation. I can also resize it without any problems. But just to be on the safe side I reinstalled all of the image libraries along with image magic and GD.
Here is my settings from the image.ini file:
============================================
[ConverterSettings]
# Whether to use the external program 'convert' for converting or not
# convert can handle most image formats in existence but may not be available
UseConvert=true
# Whether to use GD for converting or not
# GD can handle JPEG and PNG's (GIF is generally not available due to patent issues)
# this means that if you disable GD you won't get support for lots of image formats UseGD=false
[GDSettings]
# If set to true more advanced functionality will be available
# which is present in GD2. This requires GD2 to be compiled in
# the PHP module. HasGD2=false
[ShellSettings]
# Windows installations should specify the path since convert is also
# an application for converting filesystems.
ConvertPath=/usr/bin ConvertExecutable=/usr/bin/convert
======================================== Here is the debug output: Warning: eZModuleOperationInfo::execute Jul 01 2003 12:32:31
Missing main operation memento for key: c74488fab4aa646df5751f2afcd08a3c Debug: here 1 Jul 01 2003 12:32:31
array(1) {
[0]=>
string(70) "ezcontentobject.contentclass_id in (1,10,10,11,11,2,2,5,5,7,7,8,8,9,9)" } Warning: Jul 01 2003 12:32:31
Exec: /usr/bin/convert -geometry "600x600>" var/storage/reference/image//phplgvUsN.jpg jpg:var/storage/variations/image/p/h/p//phplgvUsN_600x600_444.jpg, Err: , Ret: 198 Warning: PHP Jul 01 2003 12:32:31
getimagesize: Unable to open 'var/storage/variations/image/p/h/p/phplgvUsN_600x600_444.jpg' for reading. in /home/clean/public_html/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 234 Warning: PHP Jul 01 2003 12:32:31
stat failed for var/storage/variations/image/p/h/p/phplgvUsN_600x600_444.jpg (errno=2 - No such file or directory) in /home/clean/public_html/kernel/classes/datatypes/ezimage/ezimagevariation.php on line 249 Error: Jul 01 2003 12:32:31
Could not create variation for var/storage/variations/image/p/h/p/phplgvUsN_600x600_444.jpg Error: eZTemplate @ design/standard/templates/content/datatype/view/ezimage.tpl:8[14] Jul 01 2003 12:32:31
Cannot retrieve attribute of a boolean Error: eZTemplate @ design/standard/templates/content/datatype/view/ezimage.tpl:8[45] Jul 01 2003 12:32:31
Cannot retrieve attribute of a boolean Error: eZTemplate @ design/standard/templates/content/datatype/view/ezimage.tpl:8[67] Jul 01 2003 12:32:31
Cannot retrieve attribute of a boolean Warning: PHP Jul 01 2003 12:32:31 Undefined variable: lang in /home/clean/public_html/kernel/classes/ezcontentobject.php on line 1155 Has anyone else experienced this odd problem and if so is their a solution?
Thanks fats
-- Stuart
[email protected]
http://www.grandmore.com
|