I can't get images to show and I have tried everything!!! I am begging for help

Author Message

Tristan Koen

Saturday 23 August 2003 7:58:03 am

I am running ez3.1-1 (SVN 2703) on Win2k. I have also installed imagemagick and tested that it works.

I just cannot seem to get images to display. I get the following debug errors:

Warning:
Exec: imconvert.exe -geometry "150x150>" var/storage/reference/image//phpF.tmp.jpg jpg:var/storage/variations/image/p/h/p//phpF_150x150_200.tmp.jpg, Err: , Ret: 1

Warning:
getimagesize(var/storage/variations/image/p/h/p/phpF_150x150_200.tmp.jpg): failed to open stream: No such file or directory in c:\www\rcc\htdocs\kernel\classes\datatypes\ezimage\ezimagevariation.php on line 234

Warning:
filesize(): Stat failed for var/storage/variations/image/p/h/p/phpF_150x150_200.tmp.jpg (errno=2 - No such file or directory) in c:\www\rcc\htdocs\kernel\classes\datatypes\ezimage\ezimagevariation.php on line 249

As you can see, I have tried renaming the convert.exe executable. I also changes my image.ini.append.php to read:
[ShellSettings]
ConvertPath=d:\program files\imagemagick-5.5.6-q16
ConvertExecutable=imconvert.exe

When I load an image into an article, the image file get uploaded to my
var/storage/original/image/ directory.
If I look at the debug code, it seems that ez is looking in the
var/storage/reference/image/ directory which remains empty. I suspect this has something to do with the problem, but I don't know how to fix it.

If I copy the .tmp.jpg file from the original directory to the reference directory, it still doesn't work but:
if I then go to a command prompt, cd to my webserver root and then copy & paste the convert - geometry..... line from the debug message, the image is converted and then visible.

Any ideas???

*******************************************
*** UPDATE: It works fine using ez3.2 Beta 1
*** Does this mean this is a bug in ez3.1-1?
*******************************************

Marco Zinn

Saturday 23 August 2003 11:03:51 am

Tristan,

I had a similar problem with ezP2.
The problem was solved, after I removed the > character from the Exec call to "convert". The > is used for redirection and, when safe mode was on, was replaced by some other character, thus the call to convert did not work.
About the "reference" dir: I think, every image is stored in the "original" folder. Then, it is converted to a "reference" size. From this size, the other convertions (variations) are created.
As the first call to "convert" did not work, your reference Dir is empty and so, no variations can be created.

I don't know, what was changed in 3.2Beta1.

Marco
http://www.hyperroad-design.com

Víctor Déniz

Monday 25 August 2003 5:30:53 am

Hi Marco,

Could you tell me where did you find the Exec call to convert ? I have the same problem.

andreas spahr

Thursday 28 August 2003 2:54:47 am

I've a similar problem.
The upload works fine, the image is in the directory
var/storage/original/image/
but it is not displayed on the page:
<img src="/var/storage/variations/image/p/h/p" alt="" />

Whats wrong? Can someone help?

Paul Forsyth

Thursday 28 August 2003 5:01:04 am

Look in:

settings/image.ini

There you can change where ez finds the image program needed to create your variations.

paul

John Doyle

Thursday 13 November 2003 5:55:02 pm

According to the a post above the problem was solved in ez3.2 Beta 1 but I using ez3.3 on Win 2K and I still have this problem. Anyone have this problem and been able to solve it?

Kåre Køhler Høvik

Thursday 13 November 2003 6:39:24 pm

Hi

This bug is reported here : http://www.ez.no/developer/ez_publish_3/bug_reports/convert_doesnt_work_when_located_in_a_directory_with_spaces_on_windows

At the current time it looks like a php error. Executing commands in php using "<path and executable with spaces>" works, but the when adding the parameter, ex: "800x600>" it is not executed correctly. The " are needed here because of the > option. It looks like php ignores " characters when the executable is inside ".

The easiest solution for this problem is adding convertim.exe to path, or install/move it to a directory without spaces.

-- Kåre

Kåre Høvik

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.