Forums / Developer / Image variations: some do, some don't

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

eZ debug

Timing: Jan 20 2025 07:47:23
Script start
Timing: Jan 20 2025 07:47:23
Module start 'content'
Timing: Jan 20 2025 07:47:23
Module end 'content'
Timing: Jan 20 2025 07:47:23
Script end

Main resources:

Total runtime0.1602 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.9766180.8281
Module start 'content' 0.00690.0062 769.804797.8828
Module end 'content' 0.01310.1470 867.6875527.3281
Script end 0.1602  1,395.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00392.4211200.0002
Check MTime0.00150.9095200.0001
Mysql Total
Database connection0.00080.498710.0008
Mysqli_queries0.114571.44961410.0008
Looping result0.00130.81171390.0000
Template Total0.146291.310.1462
Template load0.00110.702110.0011
Template processing0.145190.574110.1451
Override
Cache load0.00070.437610.0007
Sytem overhead
Fetch class attribute can translate value0.00090.554210.0009
XML
Image XML parsing0.00030.156710.0003
General
dbfile0.00231.4293200.0001
String conversion0.00000.003330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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