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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
HenrikT
Posts: 2
Joined: 2014-07-31T05:25:11-07:00
Authentication code: 6789

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

Post 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
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

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

Post 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.
Last edited by glennrp on 2014-07-31T07:45:46-07:00, edited 2 times in total.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post by dlemstra »

I will take a look at the PSD coder.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post 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.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

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

Post by glennrp »

Verified that IM6 - SVN revision 16247 built on Ubuntu produces the correct result. Thanks, Dirk.
HenrikT
Posts: 2
Joined: 2014-07-31T05:25:11-07:00
Authentication code: 6789

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

Post by HenrikT »

I can confirm this solves the problem.

Thank You for Your quick response.

/Henrik
Post Reply