[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?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21574
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 expects unicode 
symbol,
but bytes was provided, and I'm not sure is that right. Will these changes be 
included to python 3.5 only?

Here are some other image formats in PIL, that I didn't port, because they are 
so excotic, that I didn't find
even file examples. I can do this blindly, but I think without tests files this 
is useless.
What community think about this?

--
keywords: +patch
Added file: http://bugs.python.org/file36785/issue21574.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21574
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com