Internal PDF import adds masked mask that hides image completely
Migrated from https://bugs.launchpad.net/inkscape/+bug/1654462
Steps to reproduce:
- open Inkscape
- open Test-PDF.pdf, internal import
What happened?
- Example svg generated Test-PDF.svg
- poppler import left, internal import right
- Note the main image in the middle is missing
- one of the groups the image is in has a mask. Deleting it fixes the issue.
- the mask is a nearly all black image Test-PDF_img1 (so we'd expect this behaviour)
- inverting that mask (manually outside of Inkscape) also fixes the issue
- the mask has a mask applied to it too, a mostly white raster Test-PDF_img0.
- Replacing Test-PDF_img1 with Test-PDF_img0 also fixes the issue
- the mask is a nearly all black image Test-PDF_img1 (so we'd expect this behaviour)
- the other image doesn't have a mask
What should have happened?
- image is imported correctly
Version Info:
- Inkscape 1.1-dev (6e2907cc, 2020-11-18) Linux Mint 20
- Inkscape 0.92, Windows
- Inkscape 0.91 and 0.92 Xubuntu 16.04