Semi-transparent area in PSD turns white

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
rowaasr13

Semi-transparent area in PSD turns white

Post by rowaasr13 »

Tested using ImageMagick 6.6.3 and ImageMagick Studio 6.6.4 on this site at 2010-09-27.

Source files:
http://dustman.ru/data/zzz-test/armor_04.psd - armor base.
http://dustman.ru/data/zzz-test/armor_05.psd - metal bands.

The problem:
Both images have semi-transparent shadows around them that somehow convert into white border/aura after any operations with ImageMagick. It becomes very clear when you try to compose bands over base.
Here's correct result (cropped screenshot from Photoshop): http://dustman.ru/data/zzz-test/armor-photoshop.png. Note the very visible dark shadow under top metal plate. GIMP, for comparison, gives pretty much same image: http://dustman.ru/data/zzz-test/armor-gimp.png.
And here's screenshot that demonstrates problem with IM and IM Studio (input->armor_04.psd, composite->armor_05.psd): http://dustman.ru/data/zzz-test/armor-im-studio.png. Shadow under top plate is whiteish/gray color and same gray color is also clearly visible under bottom plates as well.

Just for note: composite itself is not a problem and only used here to provide a good background for faulty shadow. This gray aura instead of shadow is visible on single images simply loaded from .psd and resaved through ImageMagick's Perl interface, for example. So problem must be in incorrect interpretation of semi-transparent areas in .psd.
rowaasr13

Re: Semi-transparent area in PSD turns white

Post by rowaasr13 »

Seems to be related or same as in: viewtopic.php?f=1&t=17012
rowaasr13

Re: Semi-transparent area in PSD turns white

Post by rowaasr13 »

I worked around this problem by using GIMP's batch mode to pre-process PSD to PNG, and then performing rest of manipulations with IM. Shadows are now as they should, which shows that IM reads PNG correctly and PSD incorrectly.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Semi-transparent area in PSD turns white

Post by anthony »

You are right in that IM is showing a semi-transparent white halo in the PSD image, while Gimp does not.

This is a bug.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Semi-transparent area in PSD turns white

Post by magick »

We can reproduce the problem you reported and have a patch in ImageMagick 6.6.5-8 Beta available by sometime tomorrow. Thanks.
Post Reply