You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using PyMuPDF's insert_image function to insert a transparent PNG into a PDF, certain areas of the image (notably the topmost pixels) appear as solid black in the generated PDF. This issue is most noticeable in large PNG images (~300 DPI, dimensions such as 56 cm x 100 cm)
I tried the insert_image() function with the Image parameter as a File, Pixmap and stream. All had the same result
Here the resulting PDF file: 23511_1_No.pdf
Screenshot of the PNG wihtout the issue
Screenshot of the PDF with the issue
Description of the bug
When using PyMuPDF's insert_image function to insert a transparent PNG into a PDF, certain areas of the image (notably the topmost pixels) appear as solid black in the generated PDF. This issue is most noticeable in large PNG images (~300 DPI, dimensions such as 56 cm x 100 cm)
I tried the insert_image() function with the Image parameter as a File, Pixmap and stream. All had the same result
Here the resulting PDF file:
23511_1_No.pdf
Screenshot of the PNG wihtout the issue
Screenshot of the PDF with the issue
The PNG was sadly to big for uploading so i here is a wetransfer link:
https://we.tl/t-1VdSrVImwP
How to reproduce the bug
use insert_image() function with a large PNG with transparency and semi transparency
PyMuPDF version
1.24.12
Operating system
Windows
Python version
3.12
The text was updated successfully, but these errors were encountered: