module documentation

Image utility functions for Sphinx.

Class DataURI Undocumented
Function get_image_extension Undocumented
Function get_image_size Undocumented
Function guess_mimetype Undocumented
Function guess_mimetype_for_stream Undocumented
Function parse_data_uri Undocumented
Function test_svg An additional imghdr library helper; test the header is SVG's or not.
Variable mime_suffixes Undocumented
def get_image_extension(mimetype): (source)

Undocumented

Parameters
mimetype:strUndocumented
Returns
str|NoneUndocumented
def get_image_size(filename): (source)

Undocumented

Parameters
filename:strUndocumented
Returns
tuple[int, int]|NoneUndocumented
def guess_mimetype(filename='', default=None): (source)

Undocumented

Parameters
filename:strUndocumented
default:str|NoneUndocumented
Returns
str|NoneUndocumented
def guess_mimetype_for_stream(stream, default=None): (source)

Undocumented

Parameters
stream:IOUndocumented
default:str|NoneUndocumented
Returns
str|NoneUndocumented
def parse_data_uri(uri): (source)

Undocumented

Parameters
uri:strUndocumented
Returns
DataURI|NoneUndocumented
def test_svg(h, f): (source)

An additional imghdr library helper; test the header is SVG's or not.

Parameters
h:bytesUndocumented
f:BinaryIO|NoneUndocumented
Returns
str|NoneUndocumented
mime_suffixes = (source)

Undocumented