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