Skip to content

Fix inline-image() cutting off leading bytes of file when PIL image ID fails#344

Open
cpfair wants to merge 1 commit intoKronuz:masterfrom
cpfair:inline-image-truncation
Open

Fix inline-image() cutting off leading bytes of file when PIL image ID fails#344
cpfair wants to merge 1 commit intoKronuz:masterfrom
cpfair:inline-image-truncation

Conversation

@cpfair
Copy link
Copy Markdown

@cpfair cpfair commented Jul 16, 2015

It would seem that PIL doesn't rewind the file handle when it can't identify the file format. This means that some indeterminate amount of the beginning of the file never makes it into the base64'd result.

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.

1 participant