Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)

src/d/j/django-daguerre-2.1.1/daguerre/adjustments.py   django-daguerre(Download)
from __future__ import division
from six.moves import xrange
 
from daguerre.utils import exif_aware_resize, exif_aware_size
 
    def adjust(self, image, areas=None):
        image_width, image_height = exif_aware_size(image)
        new_width, new_height = self.calculate((image_width, image_height))
 
        if (new_width, new_height) == (image_width, image_height):
    def adjust(self, image, areas=None):
        image_width, image_height = exif_aware_size(image)
        new_width, new_height = self.calculate((image_width, image_height))
 
        if (new_width, new_height) == (image_width, image_height):
    def adjust(self, image, areas=None):
        image_width, image_height = exif_aware_size(image)
 
        if not areas:
            return image.copy()
    def adjust(self, image, areas=None):
        image_width, image_height = exif_aware_size(image)
        new_width, new_height = self.calculate((image_width, image_height))
 
        if (new_width, new_height) == (image_width, image_height):

src/d/j/django-daguerre-HEAD/daguerre/adjustments.py   django-daguerre(Download)
from __future__ import division
from six.moves import xrange
 
from daguerre.utils import exif_aware_resize, exif_aware_size
 
    def adjust(self, image, areas=None):
        image_width, image_height = exif_aware_size(image)
        new_width, new_height = self.calculate((image_width, image_height))
 
        if (new_width, new_height) == (image_width, image_height):
    def adjust(self, image, areas=None):
        image_width, image_height = exif_aware_size(image)
        new_width, new_height = self.calculate((image_width, image_height))
 
        if (new_width, new_height) == (image_width, image_height):
    def adjust(self, image, areas=None):
        image_width, image_height = exif_aware_size(image)
 
        if not areas:
            return image.copy()
    def adjust(self, image, areas=None):
        image_width, image_height = exif_aware_size(image)
        new_width, new_height = self.calculate((image_width, image_height))
 
        if (new_width, new_height) == (image_width, image_height):

src/d/j/django-daguerre-HEAD/daguerre/tests/unit/test_utils.py   django-daguerre(Download)
 
from daguerre.tests.base import BaseTestCase
from daguerre.utils import (make_hash, save_image, get_exif_orientation,
    get_image_dimensions, apply_exif_orientation, exif_aware_size,
    DEFAULT_FORMAT, KEEP_FORMATS)

src/d/j/django-daguerre-2.1.1/daguerre/tests/unit/test_utils.py   django-daguerre(Download)
 
from daguerre.tests.base import BaseTestCase
from daguerre.utils import (make_hash, save_image, get_exif_orientation,
    get_image_dimensions, apply_exif_orientation, exif_aware_size,
    DEFAULT_FORMAT, KEEP_FORMATS)