Re: [GM-help] 16 bit grayscale PSD bug
Swiss army knife of image processing
Brought to you by:
bfriesen
From: Alex T. <al...@ac...> - 2009-11-24 19:57:26
|
On Sun, 15 Nov 2009 12:03:37 -0800, Alex Teslik wrote > On Sat, 14 Nov 2009 16:58:48 -0600 (CST), Bob Friesenhahn wrote > > On Sat, 14 Nov 2009, Alex Teslik wrote: > > > > > Just a quick bug report regarding the conversion of 16 bit > > > grayscale PSD files. It seems GM cannot understand them, or is > > > getting confused. Converting to JPG, the result looks like static. > > > > Thanks for the report. Current GraphicsMagick refuses to open the > > file rather than returning a junk image. > > > > PSD is a particularly challenging and poorly-documented format that > > few applications (other than from Adobe) will open properly. > > > > Hi Bob, > > Much appreciated. The error code will at least help during automation. > > Not pushing, but just to provide info for the coder lucky enough to come along with the > time, knowledge, and itch to scratch... > > The PSD spec from Adobe is here: > > http://libpsd.graphest.com/files/Photoshop%20File%20Formats.pdf > > Page 47 describes the composite image that is saved in every PSD file. > > Gimp implements the PSD format here (its reads my 16 bit file correctly): > > http://git.gnome.org/cgit/gimp/tree/plug-ins/file-psd > > There is also libpsd, but I don't know if that works since I can't find a program that > uses it: > > http://libpsd.graphest.com > > If I knew C I could have been that lucky guy :( > > Thanks, > Alex Hello, I found that ImageMagick 6.5.7-10 converts this 16bit PSD with no problem. Not sure if there is usable code there that could be ported into GM. If I had any C skills I would make the patch myself. :/ In the meantime I'll be able to use that. Thanks, Alex |