[magick-users] Photoshop Layers full name?

David Christensen dwc at dwci.net
Wed Sep 13 10:16:21 CDT 2006


Greetings folks,

This may be a question better posed to the developers list, but I  
thought I'd ask here first.

I've got a multi-layered Photoshop file, in which I'm tagging  
different layers with options using the layer name.  I am using this  
information from within a Perl script to parse into a list of  
attributes associated with the layer, via $img->Get('[layer-name]').

The problem is that ImageMagick (or at least PerlMagick) is only  
returning the first 31 characters of the layer name, so some  
attribute strings are getting trimmed.  Photoshop stores and  
remembers the longer names, so it must be something in ImageMagick  
which truncates fairly arbitrarily.

I'm on Mac OS X 10.4, locally compiled IM.  One thought I had was  
that the older Mac Systems had a file name length limit of 31  
characters, so perhaps something in the code is looking at the Mac- 
ness, and choosing to truncate, as layers could be saved as  
individual images.  If so, that restriction could certainly be lifted  
on Mac OS X. :-)  In any case, a method of returning the full layer  
name would be appreciated.

Thanks much for any advice,

David Christensen



More information about the Magick-users mailing list