separate modifies channel values!

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.
User avatar
shadowhand
Posts: 14
Joined: 2013-09-20T17:57:29-07:00
Authentication code: 6789

Re: separate modifies channel values!

Post by shadowhand »

Okay, it appears that 6.8.6-10 works well for Mac, but does not work properly on Linux:

Code: Select all

linux # convert -version
Version: ImageMagick 6.8.6-10 2013-09-24 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jbig jng jp2 jpeg lcms ltdl lzma png png tiff xml zlib

linux # for file in alpha false-alpha no-alpha alpha-partial; do echo $file; convert "rgb-$file.png" -channel a -separate -format "%[fx:minima] %[fx:maxima]\n" info:; done 
alpha
0 1
false-alpha
1 1
no-alpha
0 1
alpha-partial
0.501961 1
Still getting the wrong result for the no-alpha test file.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: separate modifies channel values!

Post by anthony »

I am just wondering if the separation leaves a alpha channel present, though perhaps turned off (CF: -alpha off)

Perhaps %[fx:minima]; is not respecting the 'alpha switch', and still looking at left over data in the switched off alpha channel.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
shadowhand
Posts: 14
Joined: 2013-09-20T17:57:29-07:00
Authentication code: 6789

Re: separate modifies channel values!

Post by shadowhand »

6.8.7 has the same issue under linux:

Code: Select all

linux # convert -version
Version: ImageMagick 6.8.7-0 2013-10-07 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jbig jng jp2 jpeg lcms ltdl lzma png png tiff xml zlib

linux # for file in alpha false_alpha no_alpha alpha_partial; do echo $file; convert "rgb_$file.png" -channel o -separate  -format "%[fx:minima] %[fx:maxima]\n" info:; done
alpha
0 1
false_alpha
1 1
no_alpha
0 1
alpha_partial
0.501961 1
Tests show that "no alpha" test is still failing under linux.
User avatar
shadowhand
Posts: 14
Joined: 2013-09-20T17:57:29-07:00
Authentication code: 6789

Re: separate modifies channel values!

Post by shadowhand »

Bump? No new releases of IM in the last month?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: separate modifies channel values!

Post by fmw42 »

shadowhand wrote:Bump? No new releases of IM in the last month?
IM 6.8.7.2 has been released. See
http://www.imagemagick.org/script/binary-releases.php
http://www.imagemagick.org/script/insta ... e.php#unix
User avatar
shadowhand
Posts: 14
Joined: 2013-09-20T17:57:29-07:00
Authentication code: 6789

Re: separate modifies channel values!

Post by shadowhand »

Still the same problem with latest release:

Code: Select all

 linux # convert -version
Version: ImageMagick 6.8.7-2 2013-10-24 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jbig jng jp2 jpeg lcms ltdl lzma png png tiff xml zlib

linux # for file in alpha false-alpha no-alpha alpha-partial; do echo $file; convert "rgb-$file.png" -channel a -separate -format "%[fx:minima] %[fx:maxima]\n" info:; done
alpha
0 1
false-alpha
1 1
no-alpha
0 1
alpha-partial
0.501961 1
Post Reply