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.

eZ debug

Timing: Jan 19 2025 11:45:16
Script start
Timing: Jan 19 2025 11:45:16
Module start 'layout'
Timing: Jan 19 2025 11:45:16
Module start 'content'
Timing: Jan 19 2025 11:45:17
Module end 'content'
Timing: Jan 19 2025 11:45:17
Script end

Main resources:

Total runtime0.7543 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.1641152.6250
Module start 'layout' 0.00480.0034 741.789139.4453
Module start 'content' 0.00810.7445 781.2344545.5234
Module end 'content' 0.75260.0016 1,326.757812.1563
Script end 0.7542  1,338.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4385160.0002
Check MTime0.00130.1675160.0001
Mysql Total
Database connection0.00080.111110.0008
Mysqli_queries0.701693.0140570.0123
Looping result0.00050.0608550.0000
Template Total0.726896.420.3634
Template load0.00210.272820.0010
Template processing0.724796.083120.3624
Template load and register function0.00020.027610.0002
states
state_id_array0.00060.085510.0006
state_identifier_array0.00130.172420.0007
Override
Cache load0.00170.2301330.0001
Sytem overhead
Fetch class attribute can translate value0.00050.063320.0002
Fetch class attribute name0.00100.128240.0002
XML
Image XML parsing0.00050.066920.0003
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00160.2167160.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs