HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib64/python3.10/site-packages/docx/image/__pycache__/gif.cpython-310.pyc
o

$we^�@s8ddlmZddlmZddlmZGdd�de�ZdS)�)�Struct�)�	MIME_TYPE)�BaseImageHeaderc@s@eZdZdZedd��Zedd��Zedd��Zedd	��Z	d
S)�Gifz�Image header parser for GIF images.

    Note that the GIF format does not support resolution (DPI) information. Both
    horizontal and vertical DPI default to 72.
    cCs|�|�\}}|||dd�S)zYReturn |Gif| instance having header properties parsed from GIF image in
        `stream`.�H)�_dimensions_from_stream)�cls�stream�px_width�	px_height�r
�G/home/arjun/projects/env/lib/python3.10/site-packages/docx/image/gif.py�from_streamszGif.from_streamcCstjS)zUMIME content type for this image, unconditionally `image/gif` for GIF
        images.)r�GIF��selfr
r
r�content_typeszGif.content_typecCsdS)z8Default filename extension, always 'gif' for GIF images.�gifr
rr
r
r�default_extszGif.default_extcCs2|�d�|�d�}td�}|�|�\}}||fS)N��z<HH)�seek�readr�unpack)r	r
�bytes_�structrrr
r
rr s


zGif._dimensions_from_streamN)
�__name__�
__module__�__qualname__�__doc__�classmethodr�propertyrrrr
r
r
rrs


rN)rr�	constantsr�imagerrr
r
r
r�<module>s