Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion "image file is an unrecognised format" when using open(image-url)
The group you are posting to is a Usenet group. 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
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brad Ediger  
View profile  
 More options Mar 27 2012, 1:33 pm
From: Brad Ediger <brad.edi...@madriska.com>
Date: Tue, 27 Mar 2012 12:33:39 -0500
Local: Tues, Mar 27 2012 1:33 pm
Subject: 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...@gmail.com> wrote:
> @ 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.

Jürgen,
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.

Cheers,
Brad


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.