Metadata-Version: 1.1
Name: imgspy
Version: 0.2.2
Summary: Find the size or type of the image without fetching the whole content.
Home-page: https://github.com/nkanaev/imgspy
Author: Nazar Kanaev
Author-email: nkanaev@live.com
License: MIT
Description: 
        imgspy
        ======
        
        imgspy finds the metadata (type, size) of an image given its url by fetching
        as little as needed. This is a python implementation of `fastimage`_. Supports
        image types BMP, CUR, GIF, ICO, JPEG, PNG, PSD, TIFF, WEBP.
        
        .. _fastimage: https://github.com/sdsykes/fastimage
        
        usage
        -----
        
        ::
        
            >>> imgspy.info('http://via.placeholder.com/1920x1080')
            {'type': 'png', 'width': 1920, 'height': 1080}
            >>> with requests.get('http://via.placeholder.com/1920x1080', stream=True) as res:
            ...     imgspy.info(res.raw)
            {'type': 'png', 'width': 1920, 'height': 1080}
            >>> imgspy.info('/path/to/image.jpg')
            {'type': 'jpg', 'width': 420, 'height': 240}
            >>> with open('/path/to/image.jpg') as f:
            ...     imgspy.info(f)
            {'type': 'jpg', 'width': 420, 'height': 240}
        
Keywords: fastimage image size
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
