You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution by @soupault looks simple and straightforward. Do we need a specific function for that? Or should the example appear in the doc? It's my usual reaction to try to keep the API as short as possible :-).
Activity
soupault commentedon Nov 22, 2017
@dwSun this would be a useful feature, I agree. One of the usecases is to decode a received via REST, gRPC bytesting.
Even if we decide not to incorporate such function, you can always use
imreadwithimageioplugin which supports reading frombytes(see http://imageio.readthedocs.io/en/latest/userapi.html#imageio.imread):dwSun commentedon Nov 22, 2017
@soupault thanks for your reply and your solution. I will use imageio plugin to decode my image bytestring.
emmanuelle commentedon Nov 22, 2017
The solution by @soupault looks simple and straightforward. Do we need a specific function for that? Or should the example appear in the doc? It's my usual reaction to try to keep the API as short as possible :-).
soupault commentedon Nov 22, 2017
@emmanuelle mentioning this case in the docstring will do it for me. :)
stefanv commentedon Nov 22, 2017
Also,
imreadcan detect when the object is a bytestream and automatically attempt to useimageio? Also, we should just switch toimageioby default.jni commentedon Feb 13, 2018
I've changed the milestone, because I don't think this should hold up 0.14
Prefers imageio over PIL for file manipulations.
Prefers imageio over PIL for file manipulations.
Prefers imageio over PIL for file manipulations.
Prefers imageio over PIL for file manipulations.
Prefers imageio over PIL for file manipulations.
Prefers imageio over PIL for file manipulations.