GD conversion problems

Author Message

Clemens T

Thursday 13 December 2007 7:48:48 am

Heya all,

I'm having errors when trying to setup a development environment based on a production site that is already running. The dev. environment is somewhat similar to the production system.

The problems occur when trying to do image conversion (don't they always?). Anyways, here's the phpinfo:
<b>ezPublish version 3.8.1</b>

<b>Configure Command:</b>

 './configure' '--with-apxs2=/usr/sbin/apxs' '--with-mysql' '--with-mysqli' '--with-openssl' '--with-curl' '--enable-mbstring=all' '--with-pear' '--with-zlib' '--with-gettext' '--with-gd' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf'

<b>GD</b>

GD Support 	enabled
GD Version 	bundled (2.0.28 compatible)
FreeType Support 	enabled
FreeType Linkage 	with freetype
GIF Read Support 	enabled
GIF Create Support 	enabled
PNG Support 	enabled
WBMP Support 	enabled
XBM Support 	enabled

Next, my image.ini.append.php (the image.ini.php is unchanged):

<?php /* #?ini charset="iso-8859-1"?

[ImageMagick]
IsEnabled=false

[Rules]
DefaultRule=image/jpeg;gd
Rules[]=image/jpeg;image/jpeg;gd
#Rules[]=image/png;image/png;gd
Rules[]=image/gif;image/png;gd
Rules[]=image/xpm;image/png;gd
Rules[]=image/tiff;image/png;gd
*/ ?>

The errors:

[ Dec 13 2007 15:59:17 ] eZTemplate @ line_image.tpl:7[252]:
Cannot retrieve attribute of a NULL
[ Dec 13 2007 15:59:17 ] eZImageManager::convert:
None of the handlers can convert MIME-Type image/jpeg
[ Dec 13 2007 15:59:17 ] eZImageManager::createImageAlias:
Failed converting var/mysite/storage/images/photos/partner_program_photos/04/8773-1-eng-GB/041.jpg to alias original in directory var/mysite/storage/images/photos/partner_program_photos/04/8773-1-eng-GB

In production this works, however not on my (new) development server.

What have I done wrong? I've tried changing the rules the rights on the directory (they are OK now) etc.

Thanks!!
Clemens

Egil Fujikawa Nes

Monday 07 January 2008 6:07:20 pm

Hello Clemens,

Did you try to enable GD in order to use GD as image library. I don't know if this will solve your problem, but it can be the reason why you get this message:

[ Dec 13 2007 15:59:17 ] eZImageManager::convert:
None of the handlers can convert MIME-Type image/jpeg

You been disabling ImageMagic, and if GD isn't enabled you will have no convert handlers enabled.

To enable GD, add the following lines:

[GD]
IsEnabled=true

Good luck!

Best regards
Egil Fujikawa Nes

Try out Free eZ Publish 4.0 Trial Hosting for 14 days:
http://webdealhosting.com/ez-publish-trial-hosting

High quality eZ Publish Hosting since 2001!

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