Metadata-Version: 1.1
Name: django-resized
Version: 0.3.3
Summary: Resizes image origin to specified size.
Home-page: https://github.com/un1t/django-resized
Author: Ilya Shalyapin
Author-email: ishalyapin@gmail.com
License: MIT License
Download-URL: https://github.com/un1t/django-resized/tarball/master
Description: # django-resized
        
        Resizes image origin to specified size. Compatible with sorl-thumbnail.
        
        ## Installation
        
            pip install django-resized
        
        
        # Configuration (optional)
        
        settings.py
        
            DJANGORESIZED_DEFAULT_SIZE = [1920, 1080]
            DJANGORESIZED_DEFAULT_QUALITY = 75
            DJANGORESIZED_DEFAULT_KEEP_META = True
        
        
        ## Usage
        
        models.py
        
            from django_resized import ResizedImageField
        
            class MyModel(models.Model):
                ...
                image1 = ResizedImageField(size=[500, 300], upload_to='whatever')
                image2 = ResizedImageField(size=[100, 100], crop=['top', 'left'], upload_to='whatever')
                image3 = ResizedImageField(size=[100, 100], crop=['middle', 'center'], upload_to='whatever')
                image4 = ResizedImageField(size=[500, 300], quality=75, upload_to='whatever')
        
        ### Options
        
            size - max width and height, for example [640, 480]
            crop - resize and crop. ['top', 'left'] - top left corner, ['middle', 'center'] is center cropping, ['bottom', 'right'] - crop right bottom corner.
            quality - quality of resized image 1..100
            keep_meta - keep EXIF and other meta data, default True
        
        
        ## How to run tests
        
            pip install -r django_resized/testapp/requirements.txt
            ./runtests.py
        
Keywords: django
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Requires: python (>= 2.7)
Requires: django (>= 1.7)
