Message from discussion
"image file is an unrecognised format" when using open(image-url)
The group you are posting to is a
. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Brad Ediger <brad.edi ...@madriska.com>
Tue, 27 Mar 2012 12:33:39 -0500
Tues, Mar 27 2012 1:33 pm
Re: "image file is an unrecognised format" when using open(image-url)
On Tue, Mar 27, 2012 at 9:30 AM, Jürgen B <juergen.brue
> @ Brad Edinger
> I have attached the image that I try to load as a background.
> I have also tested other images, but they all cause the same error as soon > as the pdf has more than 1 page. Thank you for identifying the problem. This has been fixed on Prawn's master branch with this commit: https://github.com/prawnpdf/prawn/commit/d06f81b2f0e36f10f7b9f8f89824...
The issue was that Prawn would not rewind a passed-in IO object (such
as the one returned by open-uri) on subsequent calls to image(), so it would try to start reading image data from the EOF and wouldn't be able to find a PNG or JPG header.
before you can post messages.
You do not have the permission required to post.