Image variations not created

Author Message

Nicklas Lundgren

Monday 10 February 2003 11:53:46 am

Hello,

Does anyone know how to make image conversion work with ez Publish 3 RC2?

I have configured both GD2 and ImageMagick on my Win2000 computer, running Apache 1.3.24 and Php4.3.0. But nothing seems to work.

When trying to upload an image, it gets stored OK in the var\storage\original\image directory with a name like php1C.tmp.
But I understand that another instance om the image shall be stored in var\storage\reference\image. However nothing shows up there.
And the small icon of the image, which shall be stored under var\storage\variations\image\p\h\p is just as empty.

Does anyone know what´s going on?

Any help appreciated!

Regards,
Nicklas Lundgren

Volker Lenz

Tuesday 11 February 2003 2:25:05 am

What's going on here is simply a bug in ezp. I patched this bug and reported the patch to the devs. However, the patch is not yet included in rc2. So in order to make your images show up, you have two kinds of choice:

Alternative 1 (Workaround): Rename you image-magick "convert.exe" to "imageconvert.exe". Then edit your environment settings on your WIN2000-box and append the path to your new "imageconvert.exe" to the $PATH environment variable in WIN2K. DO NOT USE THE ORIGINAL FILENAME "convert.exe", since another executable with this name is already there in WIN2K. Finally you have to edit the image.ini in ezp-rc2 (do no longer use rc1 !!) and rename the convert-executable there from "convert" to "imageconvert". You do not need to enter a convert-path in this context, since you already told your WIN2K where to find the imageconvert in the $PATH-environment.

Alternative 2 (recommended): If you like to deploy your ezp on a webserver some day, where you possibly do not have administrator access to alter the $PATH-environment variable for the operating system, follow this link:
http://developer.ez.no/forum/message/14038/
and download my patched version of the ezp-image conversion-handler.
As already mentioned in alternative 1, rename your "convert.exe" to "imageconvert.exe". Since you do not tell your OS where to find the imageconvert.exe, you have to open the image.ini in ezp and enter the path to your imageconvert-exe there. BUT BEWARE NOT TO use a SINGLE backslash at the end of the path, since backslash is an escape character. The first of the following two examples shows correct settings for your image.ini on MS-Windows.

Correct (no ending backslash in the ConvertPath):
___
[ShellSettings]
ConvertPath=C:\Programs\web\ImageMagick-win2k
ConvertExecutable=imageconvert

This one's the thing you should avoid (will crash your ini-parser):
___
[ShellSettings]
ConvertPath=C:\Programs\web\ImageMagick-win2k\
ConvertExecutable=imageconvert

I'm working with ezp3-rc2 on WIN2K, too. It really performs fine. Good luck.

Regards

Volker

> Hello,
>
> Does anyone know how to make image conversion work with ez
> Publish 3 RC2?
>
> I have configured both GD2 and ImageMagick on my Win2000
> computer, running Apache 1.3.24 and Php4.3.0. But nothing
> seems to work.
>
> When trying to upload an image, it gets stored OK in the
> var\storage\original\image directory with a name like
> php1C.tmp.
> But I understand that another instance om the image shall be
> stored in var\storage\reference\image. However nothing shows
> up there.
> And the small icon of the image, which shall be stored under
> var\storage\variations\image\p\h\p is just as empty.
>
> Does anyone know what´s going on?
>
> Any help appreciated!
>
> Regards,
> Nicklas Lundgren

Skye McClelland

Monday 22 September 2003 7:13:56 pm

Hi Volker,

That link to http://developer.ez.no/forum/message/14038/ no longer works so are we able to get your bug fix from somewhere else?

Thanks for your help,

Skye :)

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

eZ debug

Timing: Jan 18 2025 11:20:24
Script start
Timing: Jan 18 2025 11:20:24
Module start 'layout'
Timing: Jan 18 2025 11:20:24
Module start 'content'
Timing: Jan 18 2025 11:20:24
Module end 'content'
Timing: Jan 18 2025 11:20:24
Script end

Main resources:

Total runtime0.8422 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1641152.6406
Module start 'layout' 0.00630.0031 741.804739.4766
Module start 'content' 0.00930.8309 781.2813554.6953
Module end 'content' 0.84020.0020 1,335.976612.1484
Script end 0.8422  1,348.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4125160.0002
Check MTime0.00140.1713160.0001
Mysql Total
Database connection0.00130.155410.0013
Mysqli_queries0.779292.5204590.0132
Looping result0.00070.0843570.0000
Template Total0.802195.220.4011
Template load0.00210.253520.0011
Template processing0.800094.980120.4000
Template load and register function0.00020.018310.0002
states
state_id_array0.00120.145910.0012
state_identifier_array0.00170.197820.0008
Override
Cache load0.00180.2194630.0000
Sytem overhead
Fetch class attribute can translate value0.00060.072530.0002
Fetch class attribute name0.00260.303540.0006
XML
Image XML parsing0.00080.100130.0003
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00120.1408160.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs