creation of image variation doesnt work - someone can help?

Author Message

Heiner Wurbs

Wednesday 26 April 2006 4:59:40 am

Hi!

Can someone help me, I have no idea anymore ...
When I upload a new image then the system is not creating anymore the image alias. But I need the aliase but have no idea howto solve this ....

The var/error.log tells me:

The reference alias original file  does not exist
Original alias does not exists, cannot create other aliases without it
Failed creating the referenced alias reference, cannot create alias medium
The reference alias original file  does not exist
Original alias does not exists, cannot create other aliases without it
Failed creating the referenced alias reference, cannot create alias small
The reference alias original file  does not exist

But if I look inside the var directory, I find some the image (but still same size):

-rw-rw-rw-  3 nobody nobody 25915 Apr 26 14:45 wednesday_test.gif
-rw-rw-rw-  3 nobody nobody 25915 Apr 26 14:45 wednesday_test_large.gif
-rw-rw-rw-  3 nobody nobody 25915 Apr 26 14:45 wednesday_test_reference.gif

(This is a linux test installer)

In my /settings/override/image.ini.append.php

[ImageMagick]
IsEnabled=false

So ImageMagick is disabled!

In my siteaccess image.ini I have the following (default, nothing changed):

[AliasSettings]
AliasList[]
AliasList[]=small
AliasList[]=medium
AliasList[]=listitem
AliasList[]=articleimage
AliasList[]=articlethumbnail
AliasList[]=gallerythumbnail
AliasList[]=imagelarge
AliasList[]=large
AliasList[]=rss
AliasList[]=logo

In the siteaccess of the admin there are no image.ini, but I think its not necessary.

Whats the problem ???

Thanks very much for your help!
Heiner

Heiner Wurbs

Wednesday 26 April 2006 7:05:22 am

ok, I found it. There were two reasons:
1) the php inside the linux installer does not include the gdlib
2) using imagemagick - works fine

3) all OTHER image variations are created ON THE FLY! So, this could be interessting for other users:

If you upload an image an do nothing else, there are only 1 images:

-rw-rw-rw-  1 nobody nobody 2436 Apr 26 16:59 test_php.gif

If you click in the administration interface to the newly created image, then you see the full view of the image, so NOW, the large image variation is created:

-rw-rw-rw-  1 nobody nobody 2436 Apr 26 16:59 test_php.gif
-rw-rw-rw-  1 nobody nobody 2428 Apr 26 17:00 test_php_large.gif
-rw-rw-rw-  1 nobody nobody 2428 Apr 26 17:00 test_php_reference.gif

If you edit this image, the admin interface shows you the medium alias, again a new variation is created:

-rw-rw-rw-  1 nobody nobody 2436 Apr 26 16:59 test_php.gif
-rw-rw-rw-  1 nobody nobody 2428 Apr 26 17:00 test_php_large.gif
-rw-rw-rw-  1 nobody nobody 2428 Apr 26 17:01 test_php_medium.gif
-rw-rw-rw-  1 nobody nobody 2428 Apr 26 17:00 test_php_reference.gif

and so on ...

Maybe it helps someone and makes the creation of image variations more clear!
Heiner

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 19 2025 07:18:15
Script start
Timing: Jan 19 2025 07:18:15
Module start 'layout'
Timing: Jan 19 2025 07:18:15
Module start 'content'
Timing: Jan 19 2025 07:18:15
Module end 'content'
Timing: Jan 19 2025 07:18:15
Script end

Main resources:

Total runtime0.0170 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 590.5859152.6563
Module start 'layout' 0.00590.0031 743.242239.4922
Module start 'content' 0.00890.0054 782.734489.4453
Module end 'content' 0.01430.0027 872.179734.3047
Script end 0.0170  906.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.5173140.0002
Check MTime0.00126.9507140.0001
Mysql Total
Database connection0.00127.023410.0012
Mysqli_queries0.002916.812930.0010
Looping result0.00000.095110.0000
Template Total0.001911.310.0019
Template load0.00126.801010.0012
Template processing0.00084.460310.0008
Override
Cache load0.00084.471510.0008
General
dbfile0.00031.764380.0000
String conversion0.00000.061640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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