prawnpdf / prawn

Fast, Nimble PDF Writer for Ruby
https://prawnpdf.org
Other
4.68k stars 688 forks source link

"image file is an unrecognised format" when running a test in Ubuntu running in WSL2 #1158

Open mileslane opened 4 years ago

mileslane commented 4 years ago

NOTE: I have hit this error with both the latest release of prawn and with the current master branch.

I have a PC running Windows 10 version 2004, build 19041.264 (latest Windows insider Fast release), with Windows Subsystem for Linux 2 installed. Inside WSL2, I am running Ubuntu 20.04. I am running rspec tests in Ubuntu.

The test failure shows:

 Failure/Error: document.image image_for_report(report), width: 7.5 * inch, position: :center

 Prawn::Errors::UnsupportedImageType:
   image file is an unrecognised format

When I run the same test under the latest MacOS, no error occurs.

I am primarily a QA person, so I am not sure how to debug this.

gettalong commented 4 years ago

Can you show the whole test case? Have you made sure the spelling of the file name is correct with respect to uppercase/lowercase?

mileslane commented 4 years ago

I will check on Monday when I can query my coworkers and extract a test case. Thanks!

mileslane commented 4 years ago

Sorry, I will try to get the sample put together this coming week!

mileslane commented 4 years ago

Still trying to get some help from a developer at work....

petergoldstein commented 2 years ago

@mileslane Is this still an open issue for you? If so, can you please provide the test case