This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » Anyone actually uses ezimage::gd?

Anyone actually uses ezimage::gd?

Anyone actually uses ezimage::gd?

Friday 09 May 2003 1:25:05 pm - 2 replies

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 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?

Modified on Friday 09 May 2003 1:26:46 pm by Huib Kleinhout

Monday 12 May 2003 12:50:36 pm

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.

Monday 12 May 2003 1:05:21 pm

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)

Modified on Monday 12 May 2003 1:05:59 pm by Huib Kleinhout


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from