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

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

Open
mileslane opened this issue May 26, 2020 · 5 comments

Comments

@mileslane
Copy link

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
Copy link
Member

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
Copy link
Author

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

@mileslane
Copy link
Author

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

@mileslane
Copy link
Author

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

@petergoldstein
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants