-
Notifications
You must be signed in to change notification settings - Fork 44
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
Reading image size of remote file #44
Comments
Need to read the raw bytes and wrap the bunch in io.BytesIO, for exmaple raw = urllib.request.urlopen(str(url)).read() See PR#46 (from me right) #46 |
Yeah, I was wondering if it could be done without reading the whole image into memory, but that's probably over-optimising! |
|
Indeed, I was planning on researching this and giving it a go later this month. |
Has anyone considered adding this functionality?
From my brief experimentation, it's a little more tricky than swapping
Though that works fine for png files, anything that needs to seek, like a jpeg, will fail.
The text was updated successfully, but these errors were encountered: