PSD transparency incorrectly detected and handled
Posted: 2014-05-26T16:47:21-07:00
After an update to the version of image magick, I've come across an issue where PSD with transparency are incorrectly detected as having none, leading notably to a loss of any transparency when converting to another format supporting it such as PNG
Older version of image magick used to detect and handle it properly
Two sample PSD exhibiting the issue (the image displayed is a PNG, to get the PSD please click "Download" at the top right):
http://sta.sh/01u41zwkjp8e
http://sta.sh/065xxj5jjnp
(additionally you can see the issue in question in those preview png, with the background as black instead of transparent)
Is this is a known issue, or is there any workaround ?
Code: Select all
$ convert -version
Version: ImageMagick 6.8.9-0 Q8 x86_64 2014-04-30 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
$ convert test.psd[0] -format "width=%w height=%h transparent=%A colorspace=%[colorspace]" info:
width=1128 height=994 transparent=False colorspace=sRGB
$ identify -verbose test.psd[0]
Transparent color: black
Code: Select all
$ convert -version
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
$ convert test.psd[0] -format "width=%w height=%h transparent=%A colorspace=%[colorspace]" info:
width=1128 height=994 transparent=True colorspace=sRGB
$ identify -verbose test.psd[0]
Transparent color: none
http://sta.sh/01u41zwkjp8e
http://sta.sh/065xxj5jjnp
(additionally you can see the issue in question in those preview png, with the background as black instead of transparent)
Is this is a known issue, or is there any workaround ?