Home
last modified time | relevance | path

Searched refs:imghdr (Results 1 – 23 of 23) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_imghdr.py1 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/
Dtest_imghdr.py1 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/
Dimghdr.rst1 :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')
Dmm.rst22 imghdr.rst
Demail.mime.rst155 this data can be decoded by the standard Python module :mod:`imghdr`, then the
/external/python/cpython3/Doc/library/
Dimghdr.rst1 :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')
Dmm.rst20 imghdr.rst
Demail.mime.rst183 this data can be decoded by the standard Python module :mod:`imghdr`, then the
/external/python/cpython2/Lib/email/mime/
Dimage.py9 import imghdr
41 _subtype = imghdr.what(None, _imagedata)
/external/python/cpython3/Doc/includes/
Demail-mime.py5 import imghdr
25 subtype=imghdr.what(None, img_data))
/external/python/cpython3/Lib/email/mime/
Dimage.py9 import imghdr
41 _subtype = imghdr.what(None, _imagedata)
/external/python/cpython2/Lib/plat-irix6/
Dtorgb.py15 import imghdr
85 ftype = imghdr.what(fname)
/external/python/cpython2/Lib/plat-irix5/
Dtorgb.py15 import imghdr
85 ftype = imghdr.what(fname)
/external/u-boot/tools/
Dzynqmpbif.c383 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/
Dmaintainers.rst133 imghdr
Dcheatsheet1906 imghdr Recognizing image files based on their first few bytes.
DHISTORY1921 - 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/
D3.6.0b2.rst352 imghdr now supports pathlib.
D3.5.0a1.rst3205 imghdr now recognizes OpenEXR format images.
3479 Added support for the WebP image type in the imghdr module. Patch by Fabrice
D3.7.0a1.rst4350 imghdr now supports pathlib.
/external/python/cpython2/Misc/NEWS.d/
D2.7.7rc1.rst1170 Added tests for the imghdr module. Based on patch by Claudiu Popa.
/external/python/cpython3/Doc/whatsnew/
D3.5.rst1252 imghdr section in Improved Modules
1255 The :func:`~imghdr.what` function now recognizes the
/external/python/cpython3/Misc/
DHISTORY2532 - 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