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.