image conversion problems URGENT

Author Message

Clemens T

Tuesday 18 December 2007 11:09:42 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

Xavier Dutoit

Tuesday 18 December 2007 4:33:36 pm

I've had less problem and better results with Imagemagick.

Otherwise, are you sure the ini.append is at the right place ? clear cache ?

Try to modify the image.ini to be sure.

X+

http://www.sydesy.com

Clemens T

Wednesday 19 December 2007 3:38:34 am

Xavier,

Thanks as always for your input. I don't have the possibility to install ImageMagick, that's why I try to solve it with GD.

I've added this code:

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

To my image.ini (directly, without using overrides). Then this is loaded, because when I rename the image.ini I get a lot of other errors.

Any thoughts? Is my ini-code OK and my PHP compile command?

Thanks!!

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