Page 1 of 1

Conversion / Display of 1-bit PSD image shows vertical lines

Posted: 2014-07-31T05:45:22-07:00
by HenrikT
I have a problem displaying and converting certain Adobe PSD files. Files that are 1-bit B/W (Gray).

When displaying or converting to e.g. PNG the file show vertical lines. I have tried this with the newest 6.8.9-6 ImageMagick and some older versions. Problem on several platforms - Mac OS X, Linux.

PSD image can be found here:

https://dl.dropboxusercontent.com/u/263 ... it_PSD.psd

simply do:

display 1-bit_PSD.psd
or
convert 1-bit_PSD.psd 1-bit_PSD.png

Resulting image can be seen here:
https://dl.dropboxusercontent.com/u/263 ... it_PSD.png

Other PSD's that are not 1-bit works fine.

I cannot spot the error in the code - please help

Thank You.

Henrik

Re: Conversion / Display of 1-bit PSD image shows vertical l

Posted: 2014-07-31T07:17:08-07:00
by glennrp
The problem doesn't seem to be in the PNG encoder. Converting to GIF also results in vertical black lines.
Old version ImageMagick 6.6.9-6 2011-04-28 (which comes with Ubuntu 14:04) does not create vertical lines
when converting to PNG or GIF.

Re: Conversion / Display of 1-bit PSD image shows vertical l

Posted: 2014-07-31T07:22:34-07:00
by dlemstra
I will take a look at the PSD coder.

Re: Conversion / Display of 1-bit PSD image shows vertical l

Posted: 2014-07-31T09:22:07-07:00
by fmw42
It looks fine in my old PS (CS).

If I convert to PNG or GIF, I get black vertical lines. If I convert to TIFF, I get white vertical lines.

IM 6.8.9.6 Q16 Mac OSX

Re: Conversion / Display of 1-bit PSD image shows vertical l

Posted: 2014-07-31T11:51:01-07:00
by dlemstra
I have found the bug and it will be fixed in the next release of ImageMagick (6.8.9-7). Thank you for reporting this. I am getting the following output after the fix: https://www.dropbox.com/s/rs28lii5nj0ypje/1-bit_PSD.png. The black garbage in the right bottom corner is really there in the image.

@glenn: On my Ubuntu machine it is also producing an incorrect image. But it has white lines instead of black.

Re: Conversion / Display of 1-bit PSD image shows vertical l

Posted: 2014-07-31T15:40:11-07:00
by glennrp
Verified that IM6 - SVN revision 16247 built on Ubuntu produces the correct result. Thanks, Dirk.

Re: Conversion / Display of 1-bit PSD image shows vertical l

Posted: 2014-08-01T01:58:53-07:00
by HenrikT
I can confirm this solves the problem.

Thank You for Your quick response.

/Henrik