Forums / Developer / image conversion problems URGENT

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!!

eZ debug

Timing: Jan 20 2025 23:27:33
Script start
Timing: Jan 20 2025 23:27:33
Module start 'content'
Timing: Jan 20 2025 23:27:35
Module end 'content'
Timing: Jan 20 2025 23:27:35
Script end

Main resources:

Total runtime1.5562 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.8516180.8281
Module start 'content' 0.00851.3823 769.6797569.0000
Module end 'content' 1.39090.1653 1,338.6797332.7422
Script end 1.5562  1,671.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.2746210.0002
Check MTime0.00150.0975210.0001
Mysql Total
Database connection0.00070.043210.0007
Mysqli_queries1.464094.07511940.0075
Looping result0.00240.15361920.0000
Template Total1.523297.920.7616
Template load0.00190.122220.0010
Template processing1.521397.751520.7606
Template load and register function0.00020.015110.0002
states
state_id_array0.00150.095010.0015
state_identifier_array0.00170.110820.0009
Override
Cache load0.00160.1014330.0000
Sytem overhead
Fetch class attribute can translate value0.00230.147530.0008
Fetch class attribute name0.00110.068040.0003
XML
Image XML parsing0.00110.067530.0004
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00910.5823270.0003
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs