Forums / Install & configuration / Images don't show after installation (3.9) [solved]

Images don't show after installation (3.9) [solved]

Author Message

Aleksandar Adam

Monday 29 January 2007 5:40:55 am

Hi,

I have installed ezpublish 3.9 on Ubuntu 6.10 and images don't show after installation, I have also installed Image Magic.

Does anyone know the possible solution?

Thanks in advance
Aleksandar

Xavier Dutoit

Monday 29 January 2007 6:03:38 am

Switch on debug, clear all caches and see if there is a message.

X+

http://www.sydesy.com

Aleksandar Adam

Tuesday 30 January 2007 4:48:08 am

There is a part of the ouput:

Warning: eZImageShellHandler::convert Jan 30 2007 13:42:09

Failed executing: /usr/local/bin/true '-geometry' 'x36' 'var/ezwebin_site/storage/images/design/ez_publish/172-1-swe-SE/website_interface1.png' 'PNG:var/ezwebin_site/storage/images/design/ez_publish/172-1-swe-SE/website_interface1_logo.png', Error: , Return: 127

Error: eZImageManager::createImageAlias Jan 30 2007 13:42:09

Failed converting var/ezwebin_site/storage/images/design/ez_publish/172-1-swe-SE/website_interface1.png to alias original in directory var/ezwebin_site/storage/images/design/ez_publish/172-1-swe-SE

Paul Borgermans

Tuesday 30 January 2007 9:00:29 am

Aleksandar,

That means "command not found". Check the settings in image.ini in the section for ImageMagick

If you look at the error output : /usr/local/bin/true won't do any conversion, it is a shell utility. You shoule expect the full commandline to convert instead.

hth
Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Xavier Dutoit

Wednesday 31 January 2007 1:27:28 am

Hi,

If you don't have imagemagic installed, you can use another image conversion (gd). Change your setting based on what you have if you can't install it.

X+

PS. I find the result better with imagemagic than with gd, if you have the choice I'd suggest to stick with it.

http://www.sydesy.com

Aleksandar Adam

Monday 19 February 2007 6:27:13 am

ImageMagic is installed in directory: /usr/lib/bin and the part of the output of the image.ini. is here. I would like to know what shall I write in this file. (I have changed ExecutablePath and ExecutableUnix values, but it didn't help)

best regards
Aleksandar

# -------- Image converter settings --------
#

[ShellSettings]
ConvertPath=

[ImageConverterSettings]
RepositoryList[]=lib/ezimage/classes
ExtensionList[]
# List of converters to use, each entry is the name of the converter
# which is defined in a ini block.
# The order of the convertes are important since the first
# applicable converter will be used. The last handler is
# usually a fallback converter which can take care of most formats.
# The list can also contain converters which cannot work
# on the installed server, the converter should check this
# and tell the image system to not use it.
ImageConverters[]
ImageConverters[]=ImageMagick
ImageConverters[]=GD
ImageHandlerAlias[]

[GD]
Name=GD
IsEnabled=true
# Which PHP handler to use for the conversion,
# ezimagegd means to use the ImageGD extension in PHP
Handler=ezimagegd

# The following filters are supported by GD
# geometry/scale
# geometry/scalewidth
# geometry/scaleheight
# geometry/scaledownonly
# geometry/scalewidthdownonly
# geometry/scaleheightdownonly
# geometry/scaleexact
# geometry/scalepercent
# geometry/crop
# colorspace/gray
# luminance/gray
# luminance/sepia
# color/monochrome
# border
# border/color
# border/width

[ImageMagick]
Name=ImageMagick
# If set to true then this handler will be used,
# The setup wizard will turn this off it ImageMagick is not found on the system
IsEnabled=true
# Which PHP handler to use for the conversion,
# ezimageshell means to use the generic shell handler which
# creates a command line and executes it with system().
Handler=ezimageshell
# The path to the executable, can be empty for global path.
ExecutablePath=/usr/local/bin/
# Name of the executable
Executable=convert
# Name of the executable for windows,
# uncomment ExecutableMac for Mac specific converter and
# ExecutableUnix for Unix/Linux specific converter
# ExecutableMac=convert
ExecutableUnix=convert
# Parameters that must be run before the filenames and filters.
PreParameters=
# Parameters that must be run after the filenames and filters.
PostParameters=
# Whether the destination name should be prefixed with a TAG name (see MIMETagMap below)
# The variable contains the separator between the TAG and the filename.
# This is needed for ImageMagick to provide proper conversions of some formats.
UseTypeTag=:

Claudia Kosny

Monday 19 February 2007 12:10:15 pm

Hi there

It looks like you changed the values in the main image.ini. Per default there is another image.ini.append.php in the settings/override folder. As this takes precedence over the main image.ini, make sure you have the correct settings there as well.
The override image.ini looks like this on my machine:

<?php /* #?ini charset="iso-8859-1"?
[ImageMagick]
IsEnabled=true
ExecutablePath=d:\imagemagick-6.2.6-q16
Executable=convert.exe
*/ ?>

and for my live server I just replaced the path with /usr/bin/local and the Executable with convert (without the .exe). This works fine for me, no further settings required.

Good luck

Claudia

Aleksandar Adam

Wednesday 21 February 2007 7:03:45 am

image.ini.php in override catalogue as almost identical as yours (see bellow).

What shall I check next?


<?php /* #?ini charset="iso-8859-1"?

[ImageMagick]
IsEnabled=true
ExecutablePath=/usr/local/bin
Executable=convert
ExecutableUnix=true

[GD]
IsEnabled=true
*/ ?>i

Claudia Kosny

Wednesday 21 February 2007 9:27:44 am

Hi Aleksandar

Just replace ExecutableUnix=true with ExecutableUnix=convert or remove it so the values from the main image.ini take effect. Check the comments in the main image.ini for explanation.

Claudia

Aleksandar Adam

Thursday 22 February 2007 7:30:37 am

I have solved the problem.

I have deleted image.ini.append.php in the override folder and turned off ImageMagic in image.ini file.

[ImageMagick]
Name=ImageMagick
IsEnabled=false

and now it works with the GD image handler. Simple!

Thanks for all help.

Pascal Specht

Tuesday 22 May 2007 11:30:37 pm

It might be helpful to others to know this:

On some non-english Windows servers, when using Imagemagick after a standard install, the executed command is something like:
C:\Program Files\ImageMagick-6.3.3-Q16\convert.exe with some parameters.

the shell command will break after the space between Program and Files, and therefore fail.
One possible workaround is to replace the path with the Dos8.3-compliant version in the image.ini.append.php:

ExecutablePath=c:\PROGRA~1\IMAGEM~1.3-Q\

The better solution would be to surround the full path including the executable name with double-quotes.

-Pascal

eZ debug

Timing: Jan 30 2025 21:41:52
Script start
Timing: Jan 30 2025 21:41:52
Module start 'content'
Timing: Jan 30 2025 21:41:52
Module end 'content'
Timing: Jan 30 2025 21:41:52
Script end

Main resources:

Total runtime0.1764 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.1797370.2656
Module start 'content' 0.00610.0109 958.44531,017.7500
Module end 'content' 0.01700.1594 1,976.19533,905.8203
Script end 0.1764  5,882.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00442.5022200.0002
Check MTime0.00140.8215200.0001
Mysql Total
Database connection0.00060.344610.0006
Mysqli_queries0.090851.46421410.0006
Looping result0.00140.77121390.0000
Template Total0.159090.110.1590
Template load0.00080.441010.0008
Template processing0.158389.698210.1583
Override
Cache load0.00050.311110.0005
Sytem overhead
Fetch class attribute can translate value0.00181.025310.0018
XML
Image XML parsing0.00020.135410.0002
General
dbfile0.00462.6047200.0002
String conversion0.00000.002330.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