Forums / Developer / Anyone actually uses ezimage::gd?
Huib Kleinhout
Friday 09 May 2003 4:25:05 am
Hi, In a quest to get ezp running on safe_mode (and thus without imagemagick) I'm trying to get ezimag::gd working. But there seems to be some bugs which prevent it from running anyway. For example http://ez.no/sdk/ref/view/source/ezimagegd line 160: $to_dst = $from;Shouldn't this be "$to_dst = $to;"? This seems to be a bug preventing gd::convert from copying an image from the 'original' to the 'reference' directory for example.
So my question is: Is gd supposed to be supported in 3.02 (and is anyone actually using it) or is it just an experimental alternative for imagemagick?
Jan Borsodi
Monday 12 May 2003 3:50:36 am
I haven't tried Image GD for quite some time, it could be that a bug has been introduced. I'll try it out and see if there's a quick solution.
-- Amos Documentation: http://ez.no/ez_publish/documentation FAQ: http://ez.no/ez_publish/documentation/faq
Monday 12 May 2003 4:05:21 am
Well, I've created patches this weekend that make GD working again. (I can not access these patches right now, but I'll submit them tonight) Ezp is working now on my system, with safe mode enabled. But I'm not satisfied yet: * gd can't write gifs, so gifs are ignored. I think it would be better if imagegd just copies the file instead of doing nothing. Then the users at least see something. Any thought about this?* Images are not scaled but stretched. So the x/y ratio get lost and all non-square images are distored. I was thinking about resolving this by hacking into ezimage.php, by calculating new height/widths (so e.g. a 800*200 will be converted as thumbnail of 100*25 instead of 100*100)