While developping color-extractor I stumbled across a quirk with Imagick. I confirmed the issue with a single black transparent pixel image. Under Gimp this black is shown as 75% opaque so I guess its alpha/transparency is 25%.
When I run getColorValue(\Imagick::COLOR_OPACITY)
I get roughly 0.25 whereas I get about 0.75 with getColorValue(\Imagick::COLOR_ALPHA)
so the exact opposite of what I expected.
Is this an issue about Imagick (I'm using php-imagick 3.4.3-1 and ImageMagick 6.9.7-9) or am I inverting concepts of opacity and transparency?