[issue21574] Port image types detections from PIL to the imghdr module

2015-03-10 Thread Andriy Sokolovskiy
Andriy Sokolovskiy added the comment: @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. So, if there will no chance to add them, should we remove these formats from the patch

[issue21574] Port image types detections from PIL to the imghdr module

2014-10-02 Thread Andriy Sokolovskiy
Andriy Sokolovskiy added the comment: Hi! Here is first version of patch. What I've done: * Ported 10 new image formats from PIL (tests included) * Improved existing file detections like PIL does. * Add some byte manipulation routines One more thing - I removed `ord()` calls, because python3

[issue21574] Port image types detections from PIL to the imghdr module

2014-10-02 Thread Andriy Sokolovskiy
Changes by Andriy Sokolovskiy sokand...@yandex.ru: Added file: http://bugs.python.org/file36786/issue21574.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574

[issue21574] Port image types detections from PIL to the imghdr module

2014-10-01 Thread Andriy Sokolovskiy
Andriy Sokolovskiy added the comment: I'll try to do this issue. https://mail.python.org/mailman/private/core-mentorship/2014-October/002766.html -- nosy: +coldmind ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574