I am trying to write a code where I get a png/jpeg image. If it is a png image, I want to check if it's background is 100% transparent. If yes, I want to add white background using image magick.
Currently I use image magick's "identify -format %A new.png" which returns true or false based on transparency.
However, is there any way to find out 100 percent background transparency using image magick or java code?