Forums / Install & configuration / Need urgent help: ImageMagick

Need urgent help: ImageMagick

Author Message

Jorge estévez

Wednesday 21 November 2007 12:58:47 am

Hello to all!

I am getting strange results with images using ImageMagick, if you could please take a look at:

http://www.webdesigncuba.com/index.php?/esp/content/view/full/255

<b>I have turned the debug on...</b>

The same happens in my local site at my desktop with the difference that I am running in Windows...

Now the site at www.webdesigncuba.com is a 3.8 version hosted at www.siteground.com and has the image.ini.append the following:

<b>
[ImageMagick]
IsEnabled=true
ExecutablePath=/usr/bin
Executable=convert
</b>

At my desktop I have recently installed windows with a very fresh installation of the 3.10 version of EZ (all very fresh indeed) and I get similar messages:

Error: eZImageShellHandler(ImageMagick) Nov 21 2007 03:17:25 
Unknown destination file: var/ezwebin_site/storage/images/2/products/boxes/carro/289-5-esl-ES/Carro_listitem.jpg when executing '""C:\WINDOWS\convertim.exe" "-quality" "75" "-geometry" "130x190>" "var/ezwebin_site/storage/images/2/products/boxes/carro/289-5-esl-ES/Carro.jpg" "JPEG:var/ezwebin_site/storage/images/2/products/boxes/carro/289-5-esl-ES/Carro_listitem.jpg""'
Error: eZImageManager::createImageAlias Nov 21 2007 03:17:25 
Failed converting var/ezwebin_site/storage/images/2/products/boxes/carro/289-5-esl-ES/Carro.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/2/products/boxes/carro/289-5-esl-ES'
Error: eZImageShellHandler(ImageMagick) Nov 21 2007 03:17:25 
Unknown destination file: var/ezwebin_site/storage/images/2/products/boxes/cd-dvd-box-ii/298-5-esl-ES/CD-DVD-Box-II_listitem.jpg when executing '""C:\WINDOWS\convertim.exe" "-quality" "75" "-geometry" "130x190>" "var/ezwebin_site/storage/images/2/products/boxes/cd-dvd-box-ii/298-5-esl-ES/CD-DVD-Box-II.jpg" "JPEG:var/ezwebin_site/storage/images/2/products/boxes/cd-dvd-box-ii/298-5-esl-ES/CD-DVD-Box-II_listitem.jpg""'
Error: eZImageManager::createImageAlias Nov 21 2007 03:17:25 
Failed converting var/ezwebin_site/storage/images/2/products/boxes/cd-dvd-box-ii/298-5-esl-ES/CD-DVD-Box-II.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/2/products/boxes/cd-dvd-box-ii/298-5-esl-ES'

Again my image.ini.append shows this time:

<b>
[ImageMagick]
IsEnabled=true
ExecutablePath=C:\WINDOWS
Executable=convertim.exe
</b>

Please can someone tell me where to investigate or look further to solve this issue.

Thanks, jorge

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Wednesday 21 November 2007 1:11:26 am

Sorry,

Forgot to tell that the same page at www.webdesigncuba.com on my local machine shows (when I upload a new image for that node):

Module start 'content'

Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 04:10:11

Unknown destination file: var/shop/storage/images/esp/productos/ligantes/agua_tonica/638-2-esl-ES/agua_tonica_verylarge.jpg

Error: eZImageManager::createImageAlias 	Nov 21 2007 04:10:11

Failed converting var/shop/storage/images/esp/productos/ligantes/agua_tonica/638-2-esl-ES/agua_tonica.jpg to alias original in directory var/shop/storage/images/esp/productos/ligantes/agua_tonica/638-2-esl-ES

Error: eZTemplate:eZTemplateCompiler 	Nov 21 2007 04:10:11

PHP variable $var1['caption'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler 	Nov 21 2007 04:10:11

PHP variable $var1 is not an object, cannot fetch content()

Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 04:10:11

Unknown destination file: var/shop/storage/images/esp/productos/ligantes/agua_tonica/638-2-esl-ES/agua_tonica_lata.jpg

Error: eZImageManager::createImageAlias 	Nov 21 2007 04:10:11

Failed converting var/shop/storage/images/esp/productos/ligantes/agua_tonica/638-2-esl-ES/agua_tonica.jpg to alias original in directory var/shop/storage/images/esp/productos/ligantes/agua_tonica/638-2-esl-ES

Error: eZTemplate:eZTemplateCompiler 	Nov 21 2007 04:10:11

PHP variable $var1['caption'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler 	Nov 21 2007 04:10:11

PHP variable $var1 is not an object, cannot fetch content()

Timing: 	Nov 21 2007 04:10:11

Module end 'content'

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Pascal Specht

Wednesday 21 November 2007 4:17:58 am

Hi Jorge,

I'd guess this is not an eZ Publish, but an Imagemahick issue: What happens if you invoke the conversion from command line, i.e. if you open a DOS prompt and you type the command that eZ Publish produces, something like:

"C:\WINDOWS\convertim.exe" -quality 75 -geometry 130x190 filename

I noticed that there are double-quotes around the format params "130x190>" and even with a trailing > inside the quote?! Strange...

</Pascal>

Jorge estévez

Wednesday 21 November 2007 8:02:29 am

Thank for your answer Pascal,

The strange thing is that my sites worked ok and suddenly this comes along, I am quite sure it's an ImageMagick problem, but I have not changed anything in my working environment.

Ok, I went at the DOS prompt to c:/windows and typed the following line (using a real jpg input file and giving a Jpg Output files), the conversion went just fine....

C:\WINDOWS>convertim.exe -quality 75 -geometry 130x190 image1.jpg image2.jpg

About the ">" inside, yes it's quite strange (I did not notice it until you mentioned), but I really do not know how to trace just exactly where the "command line" is generated so I can look is something is passing the “>”

This could be the error indeed, as my sited worked OK maybe I touched something by mistake.

Any other Idea that could help me please… I have been going crazy with this issue for a quite long time, it took me to install windows from 0 and ez system just to solve it and here I am again.

I have seen some questions in the forum regarding this problem and followed them but no results at all.

Maybe those ez guys out there can throw some ideas.

Thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Pascal Specht

Wednesday 21 November 2007 8:56:12 am

Hello Jorge,

since the 130x190 comes from a call to eZINI, could it be that the corresponding INI file has been damaged (for example by reading a UNIX file with a DOS tool or so?) I'm convinced that the trailing > does no good...

Have a look at the INI file of your current site access, typically it should be somewhere here:

settings\siteaccess\YOUR-SITE-ACCESS\image.ini.append.php or maybe any other image.ini.* below settings...

</Pascal>

Jorge estévez

Wednesday 21 November 2007 11:52:35 am

Yeap! The ‘>’ isn’t nice at all!

I have read all .ini and found nothing that could indicate an error; then again the errors appear in my local environment and also in a hosted site, as I cannot access the usr/bin/convert at hosted site this must mean that something must be wrong at mi site’s files.

So I went trough the ini files, checked the “<” and “>” to see of something extra was there but found nothing unusual, they are only used at the beginning and end of the .ini files just as it should be.

Any other ideas on where to search?

thanks, jorge

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Wednesday 21 November 2007 11:55:14 am

I also went all over the site's files to see if there was a match for all '>'
The same quantity for < and >

thanks, jorge

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Wednesday 21 November 2007 1:39:54 pm

This is madness!

Just installed a new local site, this is the information:

Site info:

  Site package  - ezwebin_site
  Title         - gammae
  URL           - http://gammae:8044/index.php/gammae
  Admin URL     - http://gammae:8044/index.php/gammae_admin
  Access type   - url
  Access value  - gammae


Web server info:
Version - Apache/1.3.33 (Win32) PHP/4.4.0

PHP info:
Version - 4.4.0

OS info
Name - Windows NT JUDJU-B182E3C93 5.1 build 2600

Database info:
Type - MySQL
Driver - ezmysql

Email info:
Transport - SMTP

Image conversion:
ImageMagick was found and used.
Path - C:\WINDOWS
Executable - convertim.exe

Regional info:
Primary - esl-ES
Additional - eng-US, fre-FR, ita-IT, por-BR, esl-ES

Critical tests

directory_permissions - Success
phpversion - Success
database_extensions - Success
image_conversion - Success
open_basedir - Success
safe_mode - Success
memory_limit - Success
execution_time - Success
magic_quotes_runtime - Success
allow_url_fopen - Success
accept_path_info - Success
php_session - Success
file_upload - Success
zlib_extension - Success

Other tests:

php_magicquotes – Failure
mbstring_extension - Success
imagegd_extension - Failure
imagemagick_program - Success
database_all_extensions - Failure
php_register_globals - Success
texttoimage_functions - Failure

No changes made to anything (just activated the debug), I have only navigated the site, so all .INI are intact.
When I go to main page http://gammae:8044/index.php/eng

I get these errors (sorry, lots of lines):

Timing:  	Nov 21 2007 16:21:12
Script start
Notice: eZMySQLDB::query(0.000 ms) query number per page:0 	Nov 21 2007 16:21:12
SET NAMES 'utf8'
Timing: 	Nov 21 2007 16:21:12
Module start 'content'
Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 16:21:12
Unknown destination file: var/ezwebin_site/storage/images/media/banners/grenland-frontpage/244-1-eng-US/Grenland-frontpage_billboard.jpg when executing '""C:\WINDOWS\convertim.exe" "-quality" "75" "-geometry" "764" "var/ezwebin_site/storage/images/media/banners/grenland-frontpage/244-1-eng-US/Grenland-frontpage.jpg" "JPEG:var/ezwebin_site/storage/images/media/banners/grenland-frontpage/244-1-eng-US/Grenland-frontpage_billboard.jpg""'
Error: eZImageManager::createImageAlias 	Nov 21 2007 16:21:12
Failed converting var/ezwebin_site/storage/images/media/banners/grenland-frontpage/244-1-eng-US/Grenland-frontpage.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/media/banners/grenland-frontpage/244-1-eng-US'
Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 16:21:12
Unknown destination file: var/ezwebin_site/storage/images/company/press-room/news/grenland/grenland-in-telemark/849-1-eng-US/Grenland-in-Telemark_articlethumbnail.jpg when executing '""C:\WINDOWS\convertim.exe" "-quality" "75" "-geometry" "70x150>" "var/ezwebin_site/storage/images/company/press-room/news/grenland/grenland-in-telemark/849-1-eng-US/Grenland-in-Telemark.jpg" "JPEG:var/ezwebin_site/storage/images/company/press-room/news/grenland/grenland-in-telemark/849-1-eng-US/Grenland-in-Telemark_articlethumbnail.jpg""'
Error: eZImageManager::createImageAlias 	Nov 21 2007 16:21:12
Failed converting var/ezwebin_site/storage/images/company/press-room/news/grenland/grenland-in-telemark/849-1-eng-US/Grenland-in-Telemark.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/company/press-room/news/grenland/grenland-in-telemark/849-1-eng-US'
Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 16:21:12
Unknown destination file: var/ezwebin_site/storage/images/communities/photos/langesund-fjord/794-1-eng-US/Langesund-fjord_listitem.jpg when executing '""C:\WINDOWS\convertim.exe" "-quality" "75" "-geometry" "130x190>" "var/ezwebin_site/storage/images/communities/photos/langesund-fjord/794-1-eng-US/Langesund-fjord.jpg" "JPEG:var/ezwebin_site/storage/images/communities/photos/langesund-fjord/794-1-eng-US/Langesund-fjord_listitem.jpg""'
Error: eZImageManager::createImageAlias 	Nov 21 2007 16:21:12
Failed converting var/ezwebin_site/storage/images/communities/photos/langesund-fjord/794-1-eng-US/Langesund-fjord.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/communities/photos/langesund-fjord/794-1-eng-US'
Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 16:21:12
Unknown destination file: var/ezwebin_site/storage/images/communities/photos/langesund-lighthouse/802-1-eng-US/Langesund-lighthouse_listitem.jpg when executing '""C:\WINDOWS\convertim.exe" "-quality" "75" "-geometry" "130x190>" "var/ezwebin_site/storage/images/communities/photos/langesund-lighthouse/802-1-eng-US/Langesund-lighthouse.jpg" "JPEG:var/ezwebin_site/storage/images/communities/photos/langesund-lighthouse/802-1-eng-US/Langesund-lighthouse_listitem.jpg""'
Error: eZImageManager::createImageAlias 	Nov 21 2007 16:21:12
Failed converting var/ezwebin_site/storage/images/communities/photos/langesund-lighthouse/802-1-eng-US/Langesund-lighthouse.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/communities/photos/langesund-lighthouse/802-1-eng-US'
Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 16:21:12
Unknown destination file: var/ezwebin_site/storage/images/communities/photos/brevik-bridge/798-1-eng-US/Brevik-bridge_listitem.jpg when executing '""C:\WINDOWS\convertim.exe" "-quality" "75" "-geometry" "130x190>" "var/ezwebin_site/storage/images/communities/photos/brevik-bridge/798-1-eng-US/Brevik-bridge.jpg" "JPEG:var/ezwebin_site/storage/images/communities/photos/brevik-bridge/798-1-eng-US/Brevik-bridge_listitem.jpg""'
Error: eZImageManager::createImageAlias 	Nov 21 2007 16:21:12
Failed converting var/ezwebin_site/storage/images/communities/photos/brevik-bridge/798-1-eng-US/Brevik-bridge.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/communities/photos/brevik-bridge/798-1-eng-US'
Error: eZGIFImageAnalyzer::process 	Nov 21 2007 16:21:12
The image file var/ezwebin_site/storage/images/media/images/visit-grenland/951-1-eng-US/Visit-Grenland.gif is not a GIF file, cannot analyze it
Warning: PHP 	Nov 21 2007 16:21:12
Undefined variable:  info in e:\sitiosweb\gammae\lib\ezimage\classes\ezgifimageanalyzer.php on line 283
Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 16:21:12
Unknown destination file: var/ezwebin_site/storage/images/media/images/visit-grenland/951-1-eng-US/Visit-Grenland_small.gif when executing '""C:\WINDOWS\convertim.exe" "-geometry" "100x160>" "var/ezwebin_site/storage/images/media/images/visit-grenland/951-1-eng-US/Visit-Grenland.gif" "GIF:var/ezwebin_site/storage/images/media/images/visit-grenland/951-1-eng-US/Visit-Grenland_small.gif""'
Error: eZImageManager::createImageAlias 	Nov 21 2007 16:21:12
Failed converting var/ezwebin_site/storage/images/media/images/visit-grenland/951-1-eng-US/Visit-Grenland.gif to alias 'original' in directory 'var/ezwebin_site/storage/images/media/images/visit-grenland/951-1-eng-US'
Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 16:21:12
Unknown destination file: var/ezwebin_site/storage/images/company/press-room/news/grenland/outdoor-life/882-1-eng-US/Outdoor-life_articlethumbnail.jpg when executing '""C:\WINDOWS\convertim.exe" "-quality" "75" "-geometry" "70x150>" "var/ezwebin_site/storage/images/company/press-room/news/grenland/outdoor-life/882-1-eng-US/Outdoor-life.jpg" "JPEG:var/ezwebin_site/storage/images/company/press-room/news/grenland/outdoor-life/882-1-eng-US/Outdoor-life_articlethumbnail.jpg""'
Error: eZImageManager::createImageAlias 	Nov 21 2007 16:21:12
Failed converting var/ezwebin_site/storage/images/company/press-room/news/grenland/outdoor-life/882-1-eng-US/Outdoor-life.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/company/press-room/news/grenland/outdoor-life/882-1-eng-US'
Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 16:21:12
Unknown destination file: var/ezwebin_site/storage/images/company/press-room/news/grenland/fishing-in-grenland/871-1-eng-US/Fishing-in-Grenland_articlethumbnail.jpg when executing '""C:\WINDOWS\convertim.exe" "-quality" "75" "-geometry" "70x150>" "var/ezwebin_site/storage/images/company/press-room/news/grenland/fishing-in-grenland/871-1-eng-US/Fishing-in-Grenland.jpg" "JPEG:var/ezwebin_site/storage/images/company/press-room/news/grenland/fishing-in-grenland/871-1-eng-US/Fishing-in-Grenland_articlethumbnail.jpg""'
Error: eZImageManager::createImageAlias 	Nov 21 2007 16:21:12
Failed converting var/ezwebin_site/storage/images/company/press-room/news/grenland/fishing-in-grenland/871-1-eng-US/Fishing-in-Grenland.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/company/press-room/news/grenland/fishing-in-grenland/871-1-eng-US'
Error: eZImageShellHandler(ImageMagick) 	Nov 21 2007 16:21:12
Unknown destination file: var/ezwebin_site/storage/images/company/press-room/news/grenland/hiking-in-grenland/860-1-eng-US/Hiking-in-Grenland_articlethumbnail.jpg when executing '""C:\WINDOWS\convertim.exe" "-quality" "75" "-geometry" "70x150>" "var/ezwebin_site/storage/images/company/press-room/news/grenland/hiking-in-grenland/860-1-eng-US/Hiking-in-Grenland.jpg" "JPEG:var/ezwebin_site/storage/images/company/press-room/news/grenland/hiking-in-grenland/860-1-eng-US/Hiking-in-Grenland_articlethumbnail.jpg""'
Error: eZImageManager::createImageAlias 	Nov 21 2007 16:21:12
Failed converting var/ezwebin_site/storage/images/company/press-room/news/grenland/hiking-in-grenland/860-1-eng-US/Hiking-in-Grenland.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/company/press-room/news/grenland/hiking-in-grenland/860-1-eng-US'
Timing: 	Nov 21 2007 16:21:12
Module end 'content'
Timing: 	Nov 21 2007 16:21:12
End

In other instalations of ez 3.10 this did not happened right away, once I access the site to set it up erors appear sudenlly

So there must be another place that has some kind of error: php.ini. httd.conf….? Where can I look!

Search for the following portion of line: convertim.exe" "-quality" "75" "-geometry" "70x150>"

As you can see ‘>’ appears again!

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Wednesday 21 November 2007 2:20:30 pm

Hi again!

I have installed again another 3.10 ez site, this time with English and Spanish languages. The same behavior…

Has anybody any clue if this could be due to my http.conf ? I am using two apache configurations and I wonder (that’s the only last thing I can do, wonder) If I could have something wrong in my settings.

Anyway if someone would like to check out my http.conf or any other configuration file please let me know your email to send it to you…

And please let me know quickly before I go mad!

thanks
jorge

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jorge estévez

Monday 26 November 2007 9:50:32 pm

You know what?

I had two trojans viruses that mess up with host configuration at c:/windows/sistem32/drivers/etc/host

Solved! Donwloaded something to deal with them!

WOW!

thanks!

by the way they are:

Lsass and Scvhost

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com