Forums / Install & configuration / ezimagemanager with GD handling

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!