Forums / Developer / Imagemagick: How to change images generated names

Imagemagick: How to change images generated names

Author Message

Jorge estévez

Wednesday 08 October 2008 11:53:12 am

Hello,

Please see my previous post at http://ez.no/developer/forum/developer/image_variations_some_do_some_don_t

In windows there is a problem with long names for folders and files due to the 256 limit, this issue can be found at http://issues.ez.no/IssueView.php?Id=11248&activeItem=15

The name of the directory where the variations of the images will be saved (generated by imagemagick) and also, the name of the images are made from the pattern of the object (the default is attribute <name>) defined at the class definition form.

Once (my problem!!) you change the pattern by using more attributes (name + code + any other attribute) then the images generated in all variations defined at image.ini are indeed "big names", so the 256 limit at windows comes to an end (pity windows).

I would like to hack the precise code that will limit the use of all the pattern used at the administration class object pattern definition, so only <name> is used, and by doing this generate only short names for folders and names.

This will not save windows responsibility :-), but it will indeed save me from my client as images are not been generated (randomly) depending of the length of all attrributes that makes the pattern object.

thanks

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

Jorge estévez

Thursday 09 October 2008 3:32:01 am

Any clues?

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

Kristof Coomans

Thursday 09 October 2008 5:36:53 am

Hi Jorge

The path used is generated in eZImageAliasHandler::imagePath(), imagePathByNode(), the image name by imageName() and imageNameByNode().

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Jorge estévez

Thursday 09 October 2008 7:57:57 am

Thanks, I will try to change the code...

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

Jorge estévez

Sunday 14 December 2008 5:13:40 am

Hello,

Cannot find that piece of code, can you tell me where to look?
thanks

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