Skip to content

Fix bug in PngFromPdfImageFactory where softmask is wrongly referenced.#1069

Merged
BobLd merged 1 commit intoUglyToad:masterfrom
orrest:master
Jul 6, 2025
Merged

Fix bug in PngFromPdfImageFactory where softmask is wrongly referenced.#1069
BobLd merged 1 commit intoUglyToad:masterfrom
orrest:master

Conversation

@orrest
Copy link
Copy Markdown

@orrest orrest commented Jul 2, 2025

Before the fix, the extracted png is:
before

After:
after

And the pdf page where the image in:
example.pdf

And I think that's because the mask used the image's bytes, lead to the unexpected extraced image.

@BobLd BobLd merged commit 6261258 into UglyToad:master Jul 6, 2025
2 checks passed
@BobLd
Copy link
Copy Markdown
Collaborator

BobLd commented Jul 6, 2025

@orrest thanks a lot for the contribution, greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants