Anyone actually uses ezimage::gd?

Author Message

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

Huib Kleinhout

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)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:25:31
Script start
Timing: Jan 18 2025 10:25:31
Module start 'layout'
Timing: Jan 18 2025 10:25:31
Module start 'content'
Timing: Jan 18 2025 10:25:31
Module end 'content'
Timing: Jan 18 2025 10:25:31
Script end

Main resources:

Total runtime0.0195 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 589.0469152.6250
Module start 'layout' 0.00770.0040 741.671939.4453
Module start 'content' 0.01170.0057 781.117289.3359
Module end 'content' 0.01740.0021 870.453134.3047
Script end 0.0195  904.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002814.5034140.0002
Check MTime0.00125.9867140.0001
Mysql Total
Database connection0.00168.388510.0016
Mysqli_queries0.003718.779530.0012
Looping result0.00000.113610.0000
Template Total0.00178.610.0017
Template load0.00094.680210.0009
Template processing0.00083.856010.0008
Override
Cache load0.00063.283410.0006
General
dbfile0.00021.265080.0000
String conversion0.00000.056240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs