bug when extracting single LAB channel
Posted: 2016-08-12T15:59:18-07:00
Converting an sRGB PNG file to LAB colorspace before separating channels works fine; however if I attempt to limit it to a specific LAB channel the output is inconsistent. (I get the same results if I start with a LAB colorspace TIFF and don't perform any colorspace conversion.)
magick foo.png -colorspace CIELab -separate foo_channel_%d.png
(works; channel_0 = Lightness, channel_1 = A, channel_2 = B, channel_3 = Alpha)
Limiting the output to a specific channel:
magick foo.png -colorspace CIELab -channel X -separate foo_channel_X.png (where X is one of Lightness|A|B|Alpha)
I get the following:
Channel L generates B output
Channel A generates Alpha output
Channel B generates B output
Channel Alpha generates Alpha output
magick -version
Version: ImageMagick 7.0.2-7 Q8 x64 2016-08-06 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo flif freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib
magick foo.png -colorspace CIELab -separate foo_channel_%d.png
(works; channel_0 = Lightness, channel_1 = A, channel_2 = B, channel_3 = Alpha)
Limiting the output to a specific channel:
magick foo.png -colorspace CIELab -channel X -separate foo_channel_X.png (where X is one of Lightness|A|B|Alpha)
I get the following:
Channel L generates B output
Channel A generates Alpha output
Channel B generates B output
Channel Alpha generates Alpha output
magick -version
Version: ImageMagick 7.0.2-7 Q8 x64 2016-08-06 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo flif freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib