Skip failing records when rendering WMF images by radarhere · Pull Request #8506 · python-pillow/Pillow

Conversation

@petsuter

Great! As mentioned in the ticket, the C# .NET implementation also uses such record-by-record API's internally and allows the files to be handled, so I wouldn't hesitate to do the same. Also programs like Windows Paint and IrfanView allow the files to be opened without error.👍

@radarhere

@radarhere radarhere changed the title Skip failing records when rendering WMF images Skip failing records when rendering WMF images on 64-bit

Oct 26, 2024

@petsuter

@radarhere

Yay295


BOOL
enhMetaFileProc(
HDC hdc, HANDLETABLE FAR *lpht, const ENHMETARECORD *lpmr, int nHandles, LPARAM data

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why a FAR pointer?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nulano

@radarhere radarhere changed the title Skip failing records when rendering WMF images on 64-bit Skip failing records when rendering WMF images

Dec 27, 2024
Skip failing WMF records on 32-bit Windows

Labels