Comments (2)
imsave -> imwrite, this change does not shock me at all. Besides, I believe that's the convention used in MATLAB, so this change is likely to make the transition easier for anyone coming from it.
imageio.write(...)
looks and should act as a function. If this has to return something, it might be the size of the buffer written, an error code, or simply a boolean for success / failure. A different approach could be to use a context manager paired with a with
statement.
It is also good to provide an object-oriented option with the Writer
interface. An appropriate factory method, whereby the file type is inferred from the arguments, sounds like a good solution to me for the time being. You might want to use a more complex pattern later if need be.
from imageio.
Done
from imageio.
Related Issues (20)
- search_write_format returns `None` when given a PNG request HOT 6
- tests/test_ffmpeg.py::test_writer_pixelformat_size_verbose - AssertionError: assert 'yuv420p' == 'yuv420p(progressive)' (on Gentoo) HOT 2
- Mix input stream and output stream cause resolution change in pyav filter HOT 1
- Getting frame number in a video using PyAv plugin HOT 1
- Migration guide from writing with imageio-ffmpeg to pyav
- SeekableFileObject needs `readline()` for Pillow plugin HOT 2
- GIF writing still not working in v2.28.1 HOT 3
- PyAV plugin always produces 480x640 when filters are specified HOT 2
- VP8 codec not supported for mp4 videos with ffmpeg?
- Drop v2, apply v3 as the only imageio interface.
- Some tests fail if imageio-ffmpeg is not installed
- test_findlib2 fails for unknown reason HOT 1
- Transparency not working on gifs HOT 3
- test_8bit_with_16bit_depth fails on s390x (64 bit/big endian machine) HOT 2
- Question: loading TIFF as grayscale in v3 HOT 5
- New behavior of imageio.imsave HOT 5
- heif format / .heic image file support HOT 2
- How to use pyAV plugin to export as GIF, and avoid color loss? HOT 10
- Standardized bit-depth of images
- Cannot open PGM file HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imageio.