/external/python/cpython3/Lib/test/ |
D | test_imghdr.py | 1 import imghdr 45 self.assertEqual(imghdr.what(filename), expected) 47 self.assertEqual(imghdr.what(stream), expected) 50 self.assertEqual(imghdr.what(None, data), expected) 51 self.assertEqual(imghdr.what(None, bytearray(data)), expected) 57 self.assertEqual(imghdr.what(pathlib.Path(filename)), expected) 63 imghdr.tests.append(test_jumbo) 64 self.addCleanup(imghdr.tests.pop) 65 self.assertEqual(imghdr.what(None, b'eggs'), 'ham') 74 self.assertEqual(imghdr.what(stream), 'png') [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_imghdr.py | 1 import imghdr 41 self.assertEqual(imghdr.what(filename), expected) 43 self.assertEqual(imghdr.what(ufilename), expected) 45 self.assertEqual(imghdr.what(stream), expected) 48 self.assertEqual(imghdr.what(None, data), expected) 54 imghdr.tests.append(test_jumbo) 55 self.addCleanup(imghdr.tests.pop) 56 self.assertEqual(imghdr.what(None, b'eggs'), 'ham') 65 self.assertEqual(imghdr.what(stream), 'png') 70 imghdr.what() [all …]
|
/external/python/cpython2/Doc/library/ |
D | imghdr.rst | 1 :mod:`imghdr` --- Determine the type of an image 4 .. module:: imghdr 7 **Source code:** :source:`Lib/imghdr.py` 11 The :mod:`imghdr` module determines the type of image contained in a file or 14 The :mod:`imghdr` module defines the following function: 55 You can extend the list of file types :mod:`imghdr` can recognize by appending 70 >>> import imghdr 71 >>> imghdr.what('bass.gif')
|
D | mm.rst | 22 imghdr.rst
|
D | email.mime.rst | 155 this data can be decoded by the standard Python module :mod:`imghdr`, then the
|
/external/python/cpython3/Doc/library/ |
D | imghdr.rst | 1 :mod:`imghdr` --- Determine the type of an image 4 .. module:: imghdr 7 **Source code:** :source:`Lib/imghdr.py` 11 The :mod:`imghdr` module determines the type of image contained in a file or 14 The :mod:`imghdr` module defines the following function: 63 You can extend the list of file types :mod:`imghdr` can recognize by appending 78 >>> import imghdr 79 >>> imghdr.what('bass.gif')
|
D | mm.rst | 20 imghdr.rst
|
D | email.mime.rst | 183 this data can be decoded by the standard Python module :mod:`imghdr`, then the
|
/external/python/cpython2/Lib/email/mime/ |
D | image.py | 9 import imghdr 41 _subtype = imghdr.what(None, _imagedata)
|
/external/python/cpython3/Doc/includes/ |
D | email-mime.py | 5 import imghdr 25 subtype=imghdr.what(None, img_data))
|
/external/python/cpython3/Lib/email/mime/ |
D | image.py | 9 import imghdr 41 _subtype = imghdr.what(None, _imagedata)
|
/external/python/cpython2/Lib/plat-irix6/ |
D | torgb.py | 15 import imghdr 85 ftype = imghdr.what(fname)
|
/external/python/cpython2/Lib/plat-irix5/ |
D | torgb.py | 15 import imghdr 85 ftype = imghdr.what(fname)
|
/external/u-boot/tools/ |
D | zynqmpbif.c | 383 struct image_header_table imghdr = { in bif_add_part() local 388 r = bif_add_blob(&imghdr, sizeof(imghdr), &imghdr_off); in bif_add_part()
|
/external/python/cpython2/Misc/ |
D | maintainers.rst | 133 imghdr
|
D | cheatsheet | 1906 imghdr Recognizing image files based on their first few bytes.
|
D | HISTORY | 1921 - The imghdr module now detects Exif files. 12991 Since there's also an imghdr.py file, I propose to make sndhdr.py the 13786 - The imghdr.py module recognizes new image types: BMP, PNG. 16910 imghdr: recognizes image file headers
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.6.0b2.rst | 352 imghdr now supports pathlib.
|
D | 3.5.0a1.rst | 3205 imghdr now recognizes OpenEXR format images. 3479 Added support for the WebP image type in the imghdr module. Patch by Fabrice
|
D | 3.7.0a1.rst | 4350 imghdr now supports pathlib.
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7.7rc1.rst | 1170 Added tests for the imghdr module. Based on patch by Claudiu Popa.
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.5.rst | 1252 imghdr section in Improved Modules 1255 The :func:`~imghdr.what` function now recognizes the
|
/external/python/cpython3/Misc/ |
D | HISTORY | 2532 - Issue #19990: Added tests for the imghdr module. Based on patch by 19305 - The imghdr module now detects Exif files. 30370 Since there's also an imghdr.py file, I propose to make sndhdr.py the 31165 - The imghdr.py module recognizes new image types: BMP, PNG. 34289 imghdr: recognizes image file headers
|