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.

imageiov2.10.1. The imwrite will raise ValueError when filename include "#".

See original GitHub issue

Imageio V2.10.1

import imageio
import numpy as np

imageio.imwrite('#1.jpg', np.zeros([512, 512, 3], dtype=np.uint8))

It will raise ValueError: Could not find a format to read the specified file in ImageMode.single_image mode.

But it will good. No raise.

imageio.imwrite('#1.jpg', np.zeros([512, 512, 3], dtype=np.uint8), '.jpg')

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
One-sixthcommented, Nov 5, 2021

@FirefoxMetzger Yes, I am interested. I will open a PR later.

0reactions
FirefoxMetzgercommented, Nov 5, 2021

Actually, @One-sixth I like your suggestion the most. Would you like to implement it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

imageio Documentation - Read the Docs
Imageio can read from filenames, file objects. ... iio.imwrite(gif_path, frames) ... These include classic 2D images, as well as animated and volumetric.
Read more >
ImageIO.imwrite "ValueError: Could not find a format to write ...
Is what the type is so that should work fine. So I tried this where I specify the file type: imageio.imsave('images/imagesTest.dng', image ...
Read more >
Imageio's user API — imageio 2.8.0 documentation
imwrite () - write an image to the specified uri; mimwrite() - write a series of ... Can be the name of a...
Read more >
Getting Started With ImageIO Library in Python - GeeksforGeeks
3) Creating Image file: For creating an image file we have to used imageio.imwrite() method. Syntax: imageio.imwrite(filename,numPy_ndarray, ...
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