ezimagemanager with GD handling

Author Message

Sander Homs

Monday 31 March 2003 12:32:17 pm

In kernel/common/image.php,
there is something wrong with this:

$img->registerType( 'gd', new eZImageGD( EZ_IMAGE_KEEP_SUFFIX,
EZ_IMAGE_PREPEND_SUFFIX_TAG ) );

I changed the suffix parameter to EZ_IMAGE_KEEP_SUFFIX.

Big mistake in ezimagegd.php:

00196 function scale( &$from, &$to, &$to_file, &$filters, $scale )
00197 {
00198 $this->convert( $from, $to, $to_file, $filters, $scale );
00199 }

I changed it to (WTH is your problem with php?):

function scale( &$from, &$to, &$to_dir, &$to_file, &$filters, $scale )
{
$this->convert( $from, $to, $to_dir, $to_file, $filters, $scale );
}

Couse the function must be used like this:

/*!
Converts the image and scales it if needed.
Returns true if the image could be converted.
*/
function convert( &$from, &$to, &$to_dir, &$to_file, &$filter_array, $scale = false )
.......

And for scaling stuff is passed like this from ezimagemanager.php:

$str = $type_obj->scale( $from_array, $to_array, $to_dir, $to_file,
$filter_array, $scale_rule );

Not every image is created. I think it creates only one image. On the demo gallery site it doesnt create any of the images exept the textimage. How can i fix this? Something with this image function is wrong please help as fast as possible.
Template processing takes a very long time: 45.0026 sec
I hope i supplied enough information. More info can be found at this topic:
http://developer.ez.no/developer/ez_publish_3/forum/install_configuration/still_problems_with_images
Some changes fixed alot and i hope this will be helpfull

I am looking forward for an answer,

Sander Homs

Sander Homs

Monday 31 March 2003 1:14:16 pm

Well i found all the errors and fixed the shit :)
It is working now. I only had to delete the cache and variations dir and i cleaned up my database 'ezimagevariation' database table.

Lets hear what the developers have to say about this?! :)

Greats,
Sander

Jean Fitz

Tuesday 01 April 2003 11:55:03 am

I did exactly the same thing as you and the images are FINALLY there.
Thanks Sander for saving me so much agony and searching for solutions (but I'm a coward and only 'moved' the variations and cache dirs). Once I deleted the files from the ezimagevariation table, PRESTO.
Thanks again

Valentin Svelland

Monday 07 April 2003 12:53:33 pm

Unfortunately I'm experiencing the same frustrating problem, no images. I tried out your solution, but being somewhat a newbie - or at least not a good programmer, I'm not quite there yet. Have you seen this solution laid out in a simpler step by step way? I really wanna beat this thing.. :)

http://www.bredbandavisen.no/ezpublish-3.0-1/index.php/demo/content/view/thumbnail/18

------------------------
I made eZ run on www.eigersund.kommune.no, bjerkreim.kommune.no, lund.kommune.no and sokndal.kommune.no. Municipalities should use open source!

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 31 2025 00:32:28
Script start
Timing: Jan 31 2025 00:32:28
Module start 'layout'
Timing: Jan 31 2025 00:32:28
Module start 'content'
Timing: Jan 31 2025 00:32:28
Module end 'content'
Timing: Jan 31 2025 00:32:28
Script end

Main resources:

Total runtime0.0257 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.2500151.2266
Module start 'layout' 0.00510.0041 739.4766220.7188
Module start 'content' 0.00920.0150 960.19531,001.8203
Module end 'content' 0.02420.0015 1,962.015633.9922
Script end 0.0257  1,996.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00259.6853140.0002
Check MTime0.00103.9620140.0001
Mysql Total
Database connection0.00093.554910.0009
Mysqli_queries0.002710.659130.0009
Looping result0.00000.089010.0000
Template Total0.00114.110.0011
Template load0.00093.318410.0009
Template processing0.00020.754010.0002
Override
Cache load0.00062.213810.0006
General
dbfile0.00166.193580.0002
String conversion0.00000.109440.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