Skip failing records when rendering WMF images by radarhere · Pull Request #8506 · python-pillow/Pillow
Conversation
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
changed the title
Skip failing records when rendering WMF images
Skip failing records when rendering WMF images on 64-bit
|
|
||
| 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.
radarhere
changed the title
Skip failing records when rendering WMF images on 64-bit
Skip failing records when rendering WMF images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters