Skip to content

Some valid JPEG files may not be loaded using XImage.FromFile()#332

Open
stogle wants to merge 1 commit intoempira:masterfrom
stogle:issue256
Open

Some valid JPEG files may not be loaded using XImage.FromFile()#332
stogle wants to merge 1 commit intoempira:masterfrom
stogle:issue256

Conversation

@stogle
Copy link

@stogle stogle commented Jan 29, 2026

Fixes #256.

Some JPEG files don't include any app headers at all (sometimes called "raw" JPEGs - not to be confused with RAW files). In my case, JPEGs captured by FlashCap sometimes didn't have them.

This PR makes app headers optional so that PDFsharp can successfully import them.

@ThomasHoevel
Copy link
Member

Thanks for the PR.

Can you provide a JPEG file to replicate the issue fixed by the PR?

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.

Some valid JPEG files may not be loaded using XImage.FromFile()

2 participants