I need to extract an image from a PDF.
But since its background is transparent it's saved with a soft mask to create transparency.
While I'm able to extract the two opaque images below, I have no idea if there's a way to recreate the original image in Java. Could I use JAI?
Below there's the "main" image:
and here there's the corresponding soft mask:
I tried with ImageMagick with the command:
convert mask.jpg -background Black -alpha shape copy.png
and I almost got what I need but the foreground color is only black while the original one has also blue as foreground color.