Image variations: some do, some don't

Author Message

Jorge estévez

Wednesday 08 October 2008 8:14:25 am

Hello,

I have this random issue, some images are generated (ImageMagick) for all definitions of my image.ini settings and some don't.

Days ago all worked as expected but recently my client wanted to have in the administration site as the name of each product not only the name but other attributes too, so I changed the pattern of the name of the object as <product_number> <name> <made_by> <ade_by_code>

So far so good, but when the image is generated it builds a folder as the size of an elephant (the name has all the attributes of the pattern of the object) "fit-xxx-bicicleta-horizontal-profesional-lifefitness-95re-domlx" and the image becomes "FIT-XXX-Bicicleta-Horizontal-profesional-LifeFitness-95RE-DOMLX.jpg"

I am not saying that this could be the problem of some images not being generated as defined in my image.ini settings, but still some of them are not created at all.

An image location becomes something like:

E:\sitiosweb\gammae\var\ezwebin_site\storage\images\home\spa-y-fitness\gimnasios\cardiovasculares\bicicletas\fit0050-bicicleta-vertical-profesional-lifefitness\66471-1-esl-ES\FIT-XXX-Bicicleta-Horizontal-profesional-LifeFitness-95RE-DOMLX.jpg

Quite big?

If anyone knows if this could be my problem and knows how to shorten those images and folder names, please, help?

thanks

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

Jorge estévez

Wednesday 08 October 2008 8:47:42 am

Yes, yes, yes

Just changed values of the attributes that make the object pattern name, so the folder and the image name are shorter than the previous version and all images have been generated without problems..

Is this a known bug? or am I missing something in the imagemagick configuration or elsewhere?

I wonder how to shorten all images inspite of their object pattern name?

clues needed cause this will surelly happend again!

thanks...

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

Łukasz Serwatka

Wednesday 08 October 2008 9:51:10 am

Hi,

It is well known problem in Windows environment.
See issue: http://issues.ez.no/IssueView.php?Id=11248&activeItem=15

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jorge estévez

Wednesday 08 October 2008 10:10:34 am

Thanks,

Glad to know that !, I was preparing myself for a "few days headache"...

Is there any way of forcing "folders names" and "images names" generated by it's object pattern to be shorter so the length of folders and name all together becomo shorter too? I would like to use an object pattern that will need few attributes of the object so my final pattern name will be bigger, this will surelly make my images an folders to have "big" names" and that's where my headache will start....

Just saw http://issues.ez.no/IssueView.php?Id=12133 (Enable more control of the generated filenames for images and other uploaded content)

But there is no solution yet...

Anyone knows how to hack this?

thanks

by the way I am using ez 3.10

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

Jorge estévez

Wednesday 08 October 2008 11:54:21 am

Hello,

I guess my next question of this topic should be a new forum entry, please keep track at http://ez.no/developer/forum/developer/imagemagick_how_to_change_images_generated_names

thanks

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

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

Main resources:

Total runtime0.6692 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.0703152.6250
Module start 'layout' 0.00670.0030 741.695339.4453
Module start 'content' 0.00960.6581 781.1406561.0156
Module end 'content' 0.66770.0014 1,342.156316.1563
Script end 0.6691  1,358.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5127160.0002
Check MTime0.00130.1955160.0001
Mysql Total
Database connection0.00100.149910.0010
Mysqli_queries0.608090.8593630.0097
Looping result0.00070.1084610.0000
Template Total0.638995.520.3195
Template load0.00200.296220.0010
Template processing0.636995.179820.3185
Template load and register function0.00040.059810.0004
states
state_id_array0.00080.112710.0008
state_identifier_array0.00160.243320.0008
Override
Cache load0.00170.2583380.0000
Sytem overhead
Fetch class attribute can translate value0.00090.128420.0004
Fetch class attribute name0.00170.256960.0003
XML
Image XML parsing0.00090.140820.0005
class_abstraction
Instantiating content class attribute0.00010.009960.0000
General
dbfile0.00090.1416180.0001
String conversion0.00000.001240.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs