Module Expr Str ImportFrom alias alias alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad body Assign NameStore NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Index Num Slice Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore BinOpDiv Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpDiv Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Return TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore BinOpAdd NameLoad Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad If CompareEq NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Raise NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Raise Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Raise Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A N/A 
Provides objects that can characterize image streams as to content type and
size, as a required step in including them in a document.
 __future__ absolute_import division print_function N/A hashlib N/A os compat BytesIO is_string exceptions UnrecognizedImageError shared Emu Inches lazyproperty Image N/A object N/A N/A 
    Graphical image stream such as JPEG, PNG, or GIF with properties and
    methods required by ImagePart.
     __init__ N/A N/A self blob filename image_header N/A N/A N/A N/A N/A N/A super Image self __init__ N/A N/A self _blob blob N/A N/A self _filename filename N/A N/A self _image_header image_header N/A from_blob N/A N/A cls blob N/A N/A N/A 
        Return a new |Image| subclass instance parsed from the image binary
        contained in *blob*.
         N/A stream N/A BytesIO blob N/A N/A N/A cls _from_stream stream blob N/A classmethod from_file N/A N/A cls image_descriptor N/A N/A N/A 
        Return a new |Image| subclass instance loaded from the image file
        identified by *image_descriptor*, a path or file-like object.
         N/A N/A is_string image_descriptor N/A N/A path image_descriptor N/A N/A open path rb f N/A N/A blob N/A N/A f read N/A stream N/A BytesIO blob N/A filename N/A N/A N/A os path basename path N/A N/A stream image_descriptor N/A N/A N/A stream seek 0 N/A blob N/A N/A stream read N/A filename None N/A N/A N/A cls _from_stream stream blob filename N/A classmethod blob N/A N/A self N/A N/A N/A 
        The bytes of the image 'file'
         N/A N/A self _blob N/A property content_type N/A N/A self N/A N/A N/A 
        MIME content type for this image, e.g. ``'image/jpeg'`` for a JPEG
        image
         N/A N/A N/A self _image_header content_type N/A property ext N/A N/A self N/A N/A N/A 
        The file extension for the image. If an actual one is available from
        a load filename it is used. Otherwise a canonical extension is
        assigned based on the content type. Does not contain the leading
        period, e.g. 'jpg', not '.jpg'.
         N/A N/A N/A N/A N/A N/A os path splitext N/A self _filename N/A 1 N/A 1 N/A lazyproperty filename N/A N/A self N/A N/A N/A 
        Original image file name, if loaded from disk, or a generic filename
        if loaded from an anonymous stream.
         N/A N/A self _filename N/A property px_width N/A N/A self N/A N/A N/A 
        The horizontal pixel dimension of the image
         N/A N/A N/A self _image_header px_width N/A property px_height N/A N/A self N/A N/A N/A 
        The vertical pixel dimension of the image
         N/A N/A N/A self _image_header px_height N/A property horz_dpi N/A N/A self N/A N/A N/A 
        Integer dots per inch for the width of this image. Defaults to 72
        when not present in the file, as is often the case.
         N/A N/A N/A self _image_header horz_dpi N/A property vert_dpi N/A N/A self N/A N/A N/A 
        Integer dots per inch for the height of this image. Defaults to 72
        when not present in the file, as is often the case.
         N/A N/A N/A self _image_header vert_dpi N/A property width N/A N/A self N/A N/A N/A 
        A |Length| value representing the native width of the image,
        calculated from the values of `px_width` and `horz_dpi`.
         N/A N/A Inches N/A N/A self px_width N/A self horz_dpi N/A property height N/A N/A self N/A N/A N/A 
        A |Length| value representing the native height of the image,
        calculated from the values of `px_height` and `vert_dpi`.
         N/A N/A Inches N/A N/A self px_height N/A self vert_dpi N/A property scaled_dimensions N/A N/A self width height N/A None None N/A N/A 
        Return a (cx, cy) 2-tuple representing the native dimensions of this
        image scaled by applying the following rules to *width* and *height*.
        If both *width* and *height* are specified, the return value is
        (*width*, *height*); no scaling is performed. If only one is
        specified, it is used to compute a scaling factor that is then
        applied to the unspecified dimension, preserving the aspect ratio of
        the image. If both *width* and *height* are |None|, the native
        dimensions are returned. The native dimensions are calculated using
        the dots-per-inch (dpi) value embedded in the image, defaulting to 72
        dpi if no value is specified, as is often the case. The returned
        values are both |Length| objects.
         N/A N/A N/A width None N/A height None N/A N/A N/A N/A self width N/A self height N/A N/A width None N/A N/A scaling_factor N/A N/A float height N/A float N/A self height N/A width N/A round N/A N/A self width scaling_factor N/A N/A height None N/A N/A scaling_factor N/A N/A float width N/A float N/A self width N/A height N/A round N/A N/A self height scaling_factor N/A N/A N/A Emu width N/A Emu height N/A sha1 N/A N/A self N/A N/A N/A 
        SHA1 hash digest of the image blob
         N/A N/A N/A N/A N/A hashlib sha1 N/A self _blob hexdigest N/A lazyproperty _from_stream N/A N/A cls stream blob filename N/A None N/A N/A 
        Return an instance of the |Image| subclass corresponding to the
        format of the image in *stream*.
         N/A image_header N/A _ImageHeaderFactory stream N/A N/A filename None N/A N/A filename N/A image.%s N/A image_header default_ext N/A N/A cls blob filename image_header N/A classmethod N/A _ImageHeaderFactory N/A N/A stream N/A N/A N/A 
    Return a |BaseImageHeader| subclass instance that knows how to parse the
    headers of the image in *stream*.
     docx.image SIGNATURES read_32 N/A N/A stream N/A N/A N/A N/A N/A stream seek 0 N/A N/A N/A stream read 32 N/A N/A header N/A read_32 stream N/A N/A cls offset signature_bytes SIGNATURES N/A N/A end N/A offset N/A len signature_bytes N/A found_bytes N/A header N/A offset end N/A N/A found_bytes signature_bytes N/A N/A N/A N/A cls from_stream stream N/A UnrecognizedImageError N/A BaseImageHeader N/A object N/A N/A 
    Base class for image header subclasses like |Jpeg| and |Tiff|.
     __init__ N/A N/A self px_width px_height horz_dpi vert_dpi N/A N/A N/A N/A self _px_width px_width N/A N/A self _px_height px_height N/A N/A self _horz_dpi horz_dpi N/A N/A self _vert_dpi vert_dpi N/A content_type N/A N/A self N/A N/A N/A 
        Abstract property definition, must be implemented by all subclasses.
         N/A msg content_type property must be implemented by all subclasses of BaseImageHeader N/A N/A NotImplementedError msg N/A property default_ext N/A N/A self N/A N/A N/A 
        Default filename extension for images of this type. An abstract
        property definition, must be implemented by all subclasses.
         N/A msg default_ext property must be implemented by all subclasses of BaseImageHeader N/A N/A NotImplementedError msg N/A property px_width N/A N/A self N/A N/A N/A 
        The horizontal pixel dimension of the image
         N/A N/A self _px_width N/A property px_height N/A N/A self N/A N/A N/A 
        The vertical pixel dimension of the image
         N/A N/A self _px_height N/A property horz_dpi N/A N/A self N/A N/A N/A 
        Integer dots per inch for the width of this image. Defaults to 72
        when not present in the file, as is often the case.
         N/A N/A self _horz_dpi N/A property vert_dpi N/A N/A self N/A N/A N/A 
        Integer dots per inch for the height of this image. Defaults to 72
        when not present in the file, as is often the case.
         N/A N/A self _vert_dpi N/A property N/A