Forums / Setup & design / ImageMagick, no images rendered :(

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

eZ debug

Timing: Jan 18 2025 01:56:37
Script start
Timing: Jan 18 2025 01:56:37
Module start 'content'
Timing: Jan 18 2025 01:56:37
Module end 'content'
Timing: Jan 18 2025 01:56:38
Script end

Main resources:

Total runtime0.1523 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.7266180.8359
Module start 'content' 0.00700.0051 768.5625101.8828
Module end 'content' 0.01210.1401 870.4453533.3281
Script end 0.1522  1,403.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00362.3969200.0002
Check MTime0.00140.9135200.0001
Mysql Total
Database connection0.00100.651510.0010
Mysqli_queries0.104668.67671410.0007
Looping result0.00130.84261390.0000
Template Total0.139791.710.1397
Template load0.00080.544410.0008
Template processing0.138991.203510.1389
Override
Cache load0.00060.407110.0006
Sytem overhead
Fetch class attribute can translate value0.00090.610210.0009
XML
Image XML parsing0.00030.167510.0003
General
dbfile0.00442.9028200.0002
String conversion0.00000.003830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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