Metadata-Version: 1.2
Name: pillow-tools
Version: 1.1.2
Summary: A collection of useful tools for python pillow and ffmpy
Home-page: https://github.com/GrantGMiller/gm_pillow_tools
Author: Grant miller
Author-email: grant@grant-miller.com
License: PSF
Project-URL: Source Code, https://github.com/GrantGMiller/gm_pillow_tools
Description: pillow-tools
        ===============
        A collection of useful tools for python pillow and ffmpy.
        
        Install
        =======
        
        ::
        
            pip install pillow-tools
        
        Create a thumbnail
        ==================
        
        You can create a smaller version of an image (including .gif) while maintaining the aspect ratio.
        
        ::
        
            from pillow_tools import OptimizeToSize
        
            imagePath = '/dir/image.png'
            thumbPath = OptimizeToSize(imagePath, maxWidth=1280, maxHeight=720)
            # The thumbPath image is now in the same directory as imagePath.
            # This will scale the image to a new resolution not exceeding the maxWidth/maxHeight but preserving the aspect ratio
        
            print('thumbPath=', thumbPath)
        
        Output
        
        ::
        
            >>> thumbPath= '/dir/image_1280x720.png'
Keywords: grant miller pillow ffmpeg ffmpy image video
Platform: UNKNOWN
