ImageMagick, no images rendered :(

Author Message

mikael lindqvist

Wednesday 02 April 2003 5:12:13 am

No images are shown when I load my page. I have also tried to upload a new image but same there - just an empty spot, no image.

I have installed ez publish with the kerneldemo data. I receive no obvious error messages.

My webhotell is using ImageMagick (which I managed to get to work in the candidate release by putting the full string into the "ConvertExecutable" /usr/local/bin/convert and leaving the ConvertPath emtpy.

I have tried everything with the release version:

ConvertPath=/usr/local/bin
ConvertExecutable=convert

and

ConvertPath=/usr/local/bin
ConvertExecutable=convert

and

ConvertPath=
ConvertExecutable=/usr/local/bin/convert

My full Image.ini file looks like this at the moment:

[ConverterSettings]
# Whether to use the external program 'convert' for converting or not
# convert can handle most image formats in existence but may not be available
UseConvert=true
# Whether to use GD for converting or not
# GD can handle JPEG and PNG's (GIF is generally not available due to patent issues)
# this means that if you disable GD you won't get support for lots of image formats
UseGD=false

[GDSettings]
# If set to true more advanced functionality will be available
# which is present in GD2. This requires GD2 to be complied in
# the PHP module.
HasGD2=false

[ShellSettings]
# Windows installations should specify the path since convert is also
# an application for converting filesystems.
ConvertPath=/usr/local/bin
ConvertExecutable=convert

//Anyone know what is wrong here?

Kindly,
Mikael Lindqvist

Jan Borsodi

Wednesday 02 April 2003 10:33:49 pm

What does your [Rules] block say in image.ini?

Could you turn on debug and see what you get, for instance are there som errors/warnings with basedir restriction being in use?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

mikael lindqvist

Thursday 03 April 2003 6:32:10 am

Well, I'm a newbie when it comes to this business. However, I located the debug.ini file and changed everything to "enabled" (see copy at end) but I cannot find the output file. Where is it??

My entire image.ini file reads:

#?ini charset="iso-8859-1"?
# eZ publish configuration file for image handling
#
# NOTE: It is not recommended to edit this files directly, instead
# a file in override should be created for setting the
# values that is required for your site. Either create
# a file called settings/override/image.ini.append or
# settings/override/image.ini.append.php for more security
# in non-virtualhost modes (the .php file may already be present
# and can be used for this purpose).

[ConverterSettings]
# Whether to use the external program 'convert' for converting or not
# convert can handle most image formats in existence but may not be available
UseConvert=true
# Whether to use GD for converting or not
# GD can handle JPEG and PNG's (GIF is generally not available due to patent issues)
# this means that if you disable GD you won't get support for lots of image formats
UseGD=false

[GDSettings]
# If set to true more advanced functionality will be available
# which is present in GD2. This requires GD2 to be complied in
# the PHP module.
HasGD2=false

[ShellSettings]
# Windows installations should specify the path since convert is also
# an application for converting filesystems.
ConvertPath=/usr/local/bin
ConvertExecutable=convert

[OutputSettings]
# List MIME-Types which are supported for output,
# other MIME-Types will be converted to one the selected outputs
AvailableMimeTypes=image/jpeg;image/png

# Configuration of conversion rules.
# There must be at least one conversion for MIME-Types defined in AvailableMimeTypes above
# and it must convert to itself.
#
# Each entry for Rule is a list of 3 items.
# The first is the source MIME-Type
# The second is the destination MIME-Type
# The third is the converter type,
# available are convert or gd (remember to enable them above).
#
# The DefaultRule entry is similar to Rule
# but doesn't have any source MIME-Type
# and is set only once

[Rules]
DefaultRule=image/jpeg;convert
Rules[]=image/jpeg;image/jpeg;convert
Rules[]=image/png;image/png;convert
Rules[]=image/gif;image/png;convert
Rules[]=image/xpm;image/png;convert

# Configuration of MIME-Types,
# Each entry is a list with 3 items.
#
# The first is the name of the MIME-Type, like image/jpeg or image/png
# The second is the (Perl) regular expression for matching a filename
# The third is the default suffix for the files, it's used for creating files

[MimeTypes]
Types[]=image/jpeg;\\\\.jpe?g$;jpg;
Types[]=image/png;\\\\.png$;png
Types[]=image/gif;\\\\.gif$;gif
Types[]=image/xpm;\\\\.xpm$;xpm
Types[]=image/tiff;\\\\.tiff$;tiff
Types[]=image/ppm;\\\\.ppm$;ppm
Types[]=image/tga;\\\\.tga$;tga
Types[]=image/svg;\\\\.svg$;svg
Types[]=image/wml;\\\\.wml$;wml
Types[]=image/bmp;\\\\.bmp$;bmp

DEBUG.INI reads:

#?ini charset="iso-8859-1"?
# eZ publish configuration file for debug
#
# NOTE: It is not recommended to edit this files directly, instead
# a file in override should be created for setting the
# values that is required for your site. Either create
# a file called settings/override/debug.ini.append or
# settings/override/debug.ini.append.php for more security
# in non-virtualhost modes (the .php file may already be present
# and can be used for this purpose).

[DebugSettings]
# Master switch for conditional debugging, if disabled
# no conditions are checked.
ConditionDebug=disabled

[GeneralCondition]
# Enabled/disabled specific conditions
# Default is to have everything off and to turn it on
# in override files.
kernel-content-object-copy=enabled
workflow-event=enabled
workflow-process=enabled
workflow-type=enabled

module-run=enabled

kernel-content-view=enabled
kernel-content-view-cache=enabled

kernel-content-class=enabled

kernel-urltranslator=enabled

kernel-search-ezsearch=enabled
kernel-search-openfts=enabled

kernel-content-treenode=enabled
kernel-content-object-related-objects=enabled
kernel-content-object-limitation=enabled

kernel-policy-limitation=enabled

collaboration-group-tree=enabled
collaboration-item-list=enabled

kernel-siteaccess=enabled

kernel-db-postgresql=enabled

lib-ezutil-web=enabled

kernel-workflow-approve=enabled

eztemplate-tree-cache=enabled
eztemplate-process-cache=enabled

lib-ezutils-dir=enabled

kernel-user=enabled
kernel-content-edit=enabled

Sander Jansen

Wednesday 09 April 2003 11:44:36 pm

you should enable debug in the site.ini file... the output is on the bottom of each page, not in a debug output file

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 18 2025 05:01:26
Script start
Timing: Jan 18 2025 05:01:26
Module start 'layout'
Timing: Jan 18 2025 05:01:26
Module start 'content'
Timing: Jan 18 2025 05:01:27
Module end 'content'
Timing: Jan 18 2025 05:01:27
Script end

Main resources:

Total runtime0.9348 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 587.9141152.6250
Module start 'layout' 0.00470.0034 740.539139.4609
Module start 'content' 0.00810.9251 780.0000632.6172
Module end 'content' 0.93320.0015 1,412.617216.1563
Script end 0.9347  1,428.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3396160.0002
Check MTime0.00130.1384160.0001
Mysql Total
Database connection0.00070.076310.0007
Mysqli_queries0.847090.6118620.0137
Looping result0.00070.0743600.0000
Template Total0.904896.820.4524
Template load0.00200.213620.0010
Template processing0.902896.583820.4514
Template load and register function0.00020.017610.0002
states
state_id_array0.00070.079610.0007
state_identifier_array0.00110.118020.0006
Override
Cache load0.00210.21951590.0000
Sytem overhead
Fetch class attribute can translate value0.00100.108130.0003
Fetch class attribute name0.00120.133350.0002
XML
Image XML parsing0.00190.202430.0006
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00130.1430170.0001
String conversion0.00000.001040.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
29content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
25content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 61
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs