Skip to content

Draft: Internal PDF import - transparency not handled properly

Sameer Grover requested to merge sgrover42/inkscape:fix-for-bug-291 into master

Bug with importing images using PDF internal import when Mask attribute is set in pdf file. Areas that should be fully opaque were made transparent. rendering image invisible.

  • libpng treats alpha = 0xff as transparent when png_set_invert_alpha has been called, otherwise 0xff is opaque. Removed extraneous call to png_set_invert_alpha.
  • Removed extra multiplication 255 for color comparisons in the Mask attributes of the PDF file.

Sample test file:bug.pdf

Bug Reports

Edited by Nathan Lee

Merge request reports