Forums / Developer / Beloved windows, image handling help…

Beloved windows, image handling help…

Author Message

Jorge estévez

Wednesday 28 October 2009 6:02:06 am

Hello,

I have been dealing with this problem for quite a long time. I have developed a site in windows (%^$@$%#!), it has a tree of products of four to six levels at the most. When images for each product is “generated” in all its declarations (image.ini at settings) and saved at the var directory the path is made up by a series of directories, the name of the image and the image variation name (small, large, and all custom variation)

The whole path is really too big for some images son when handling all the information within var directory is really a headache, when moving the whole site from one location to another I always get errors.

As images generated take several strings (tree path, node’s name, etc) and they sometimes quite big, the whole path takes to many characters , I now this has to deal with our beloved “windows”

What I need is a hack that allows me to modify the path generated for images variations and substitute all the elements by, for example node_id’s or else in order to make the path smaller.

This is an example of a long image path:

var\ezwebin_site\storage\images\home\decoracion-y-luminarias\lamparas-para-habitacion\lamparas-habitacion-tipo-c\ins2463mn-c-lampara-de-mesa-de-noche-tipo-c\282630-1-esl-ES\INS2463MN-C-Lampara-de-mesa-de-noche-tipo-C_medium.jpg

I need something different, for example:

var\ezwebin_site\storage\images\172\323\345\567 \568\282630-1-esl-ES\INS2463MN-C-Lampara-de-mesa-de-noche-tipo-C_medium.jpg

It does not matter if even the name of the image could be a node_id of the image itself, something like 455_medium.jpg or 455_large.jpg so it becomes something like:

var\ezwebin_site\storage\images\172\323\345\567 \568\282630-1-esl-ES\445_medium.jpg

Any help, please I have more than 1500 errors when copying information from one place to another…

Thanks…

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

Romain Petit

Monday 02 November 2009 11:19:58 am

Hello Jorge,

This "max path length" problem only comes from Explorer.exe itselves, maybe you should better look for a workaround to Windows Explorer, because windows is not limited on path lengths.

You can try this

PS : eZ Publish is REALLY better on linux/unix OS, even virtualized under windows.

eZ debug

Timing: Jan 30 2025 00:52:26
Script start
Timing: Jan 30 2025 00:52:26
Module start 'content'
Timing: Jan 30 2025 00:52:26
Module end 'content'
Timing: Jan 30 2025 00:52:26
Script end

Main resources:

Total runtime0.2094 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.0082 587.9531180.8281
Module start 'content' 0.00820.0150 768.781393.8984
Module end 'content' 0.02310.1862 862.6797524.3281
Script end 0.2093  1,387.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00422.0000200.0002
Check MTime0.00150.7000200.0001
Mysql Total
Database connection0.00090.439810.0009
Mysqli_queries0.126760.51421410.0009
Looping result0.00160.76801390.0000
Template Total0.185688.610.1856
Template load0.00100.471810.0010
Template processing0.184688.162410.1846
Override
Cache load0.00060.299010.0006
Sytem overhead
Fetch class attribute can translate value0.00110.518610.0011
XML
Image XML parsing0.00030.128010.0003
General
dbfile0.032515.5122200.0016
String conversion0.00000.002830.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