Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupted output if "Could not determine image width, height" with JPEG image #1358

Closed
boatmeme opened this issue Jun 20, 2014 · 1 comment
Closed

Comments

@boatmeme
Copy link

This error occurs for me when trying to convert files from HTML to DOCX where the HTML includes links to JPEG images that have an Exif header that does not contain Image Width or Image Height data.

The cause appears to be line 263 of Text/Pandoc/ImageSize.hs

 _ -> fail "Could not determine image width, height"

Not sure what the correct behavior should be here. Personally, I'd rather have it render the image to 100% width or some arbitrary height/width than to produce a corrupted output document.

If it helps, here is an example of one of the problematic images: http://www.cloudera.com/content/dam/cloudera/Homepage/Tier-1/Gazzang-T1.jpg

Can you provide a fix or work-around for this issue? Thanks in advance for taking a look, and thanks for the great software!

@jgm jgm closed this as completed in 2eadc78 Jun 20, 2014
@boatmeme
Copy link
Author

Thanks for the fix!

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

No branches or pull requests

1 participant