question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PNG-FI format error

See original GitHub issue

Hello, I’m trying to read a file according to some instructions.

imageio.imread('filename.png', format='PNG-FI')

Versions I’ve tried with are 2.14.1 and 2.21.1

Both times I receive the following stacktrace:

Traceback (most recent call last):
  File "/home/user/anaconda3/lib/python3.8/site-packages/imageio/core/imopen.py", line 163, in imopen
    return loader(request, **kwargs)
  File "/home/user/anaconda3/lib/python3.8/site-packages/imageio/core/imopen.py", line 152, in loader
    return config.plugin_class(request, **kwargs)
  File "/home/user/anaconda3/lib/python3.8/site-packages/imageio/config/plugins.py", line 108, in partial_legacy_plugin
    return LegacyPlugin(request, legacy_plugin)
  File "/home/user/anaconda3/lib/python3.8/site-packages/imageio/core/legacy_plugin_wrapper.py", line 68, in __init__
    raise InitializationError(
imageio.core.request.InitializationError: `PNG-FI` can not read `/home/user/filename.png`.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/anaconda3/lib/python3.8/site-packages/imageio/core/functions.py", line 159, in imread
    with imopen(uri, "ri", plugin=format) as file:
  File "/home/user/anaconda3/lib/python3.8/site-packages/imageio/core/imopen.py", line 181, in imopen
    raise err_type(err_msg) from err_from
RuntimeError: `PNG-FI` can not handle the given uri.

My colleague runs the same line on the same file with the same imageio version and it works. I tried installing imageio into a new conda environment but I always get this error. I didn’t find anything about this PNG-FI format, do you have an idea why I receive this error? Thank you very much

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
FirefoxMetzgercommented, Aug 25, 2022

We could add a reference to the supported formats list to the docstring of plugin which might make it more obvious where to look for this information. I’ll see if I can add that once I have some spare time.

0reactions
biphasiccommented, Aug 25, 2022

you’re right, it is there! I guess I had a strong prior to some docstring that would explain parameter args and hence overlooked the result. Thanks for the library 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why mat-error not get displayed inside mat-form field in ...
Yes, mat-error does not show up by default. It only shows when the input is touched . But, luckily you can override this...
Read more >
Error on page in IE8 [#2163063] | Drupal.org
When viewing in IE8 the page finishes with Error on page. The error details below. Webpage error details User Agent: Mozilla/4.0 (compatible ...
Read more >
PNGFI | Terms and conditions - AliveShoes
PNGFI is a unique limited edition custom shoe concept designed by Pngfi. ... Agreement: the Subscription Form and these Terms and Conditions ...
Read more >
[SOLVED] 1 error 1. image format not recognized, allowed ...
I have tried to upload a Product Image in every format but It keeps giving me the same error.Any idea's?
Read more >
Automated Malware Analysis Executive Report for https://formcrafts ...
Sample : Cookbook: browseurl.jbs. System description: Windows 7 SP1 (with ... in binary or memory: https://formcrafts.com/images/home/form-order-2.pngfi.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found