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.

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 04:58:36
Script start
Timing: Jan 18 2025 04:58:36
Module start 'layout'
Timing: Jan 18 2025 04:58:36
Module start 'content'
Timing: Jan 18 2025 04:58:37
Module end 'content'
Timing: Jan 18 2025 04:58:37
Script end

Main resources:

Total runtime0.5550 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 587.9375152.6250
Module start 'layout' 0.00420.0027 740.562539.4453
Module start 'content' 0.00700.5467 780.0078493.7578
Module end 'content' 0.55360.0013 1,273.76568.1563
Script end 0.5549  1,281.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5681160.0002
Check MTime0.00130.2378160.0001
Mysql Total
Database connection0.00050.094610.0005
Mysqli_queries0.513592.5322550.0093
Looping result0.00040.0704530.0000
Template Total0.529495.420.2647
Template load0.00200.365320.0010
Template processing0.527495.027120.2637
Template load and register function0.00010.026110.0001
states
state_id_array0.00080.137110.0008
state_identifier_array0.00060.113720.0003
Override
Cache load0.00170.3027220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.087420.0002
Fetch class attribute name0.00080.143120.0004
XML
Image XML parsing0.00020.043220.0001
class_abstraction
Instantiating content class attribute0.00000.001120.0000
General
dbfile0.00230.4227100.0002
String conversion0.00000.001440.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
2content/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
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs