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.

eZ debug

Timing: Jan 31 2025 01:14:48
Script start
Timing: Jan 31 2025 01:14:49
Module start 'layout'
Timing: Jan 31 2025 01:14:49
Module start 'content'
Timing: Jan 31 2025 01:14:49
Module end 'content'
Timing: Jan 31 2025 01:14:49
Script end

Main resources:

Total runtime0.0216 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.0047 588.1250151.2109
Module start 'layout' 0.00470.0033 739.3359220.6875
Module start 'content' 0.00800.0123 960.0234997.8984
Module end 'content' 0.02030.0013 1,957.921933.9922
Script end 0.0216  1,991.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002310.4239140.0002
Check MTime0.00104.5275140.0001
Mysql Total
Database connection0.00083.496410.0008
Mysqli_queries0.002411.236530.0008
Looping result0.00000.050810.0000
Template Total0.00094.210.0009
Template load0.00073.015010.0007
Template processing0.00021.134910.0002
Override
Cache load0.00041.949710.0004
General
dbfile0.00115.315780.0001
String conversion0.00000.028740.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