-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Port image types detections from PIL to the imghdr module #65773
Comments
It would be good to add support of all image types which are supported in PIL to the imghdr module. |
Sounds good, I'll create a patch. |
Claudiu, are you working on this issue? If not, I'll start writing a patch. |
No, I didn't start any work on this and right now, with EuroPython, I don't have that much time to start, so feel free to take it and write a patch. |
I'll try to do this issue. |
Hi! Here is first version of patch. What I've done:
One more thing - I removed Here are some other image formats in PIL, that I didn't port, because they are so excotic, that I didn't find |
In general, the patch looks good, I left a couple of comments on Rietvld. It should be applied to 3.5 only. Also, there are some image test files which aren't included in this patch, could you update it to include them? Thanks. |
@Claudiu Popa, IIRC I did not add 1-2 test images because I not found how to make image or how to convert image to this format. |
Well, we should have test files for each format imghdr supports. Doesn't PIL have test files for them? |
This issue is 5 years old and has patches: it is no newcomer friendly, I remove the "easy" keyword. |
imghdr is deprecated as per PEP-594, so there won't be further enhancements to it. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: