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

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)

src/d/j/django-daguerre-2.1.1/daguerre/helpers.py   django-daguerre(Download)
from daguerre.adjustments import registry
from daguerre.models import Area, AdjustedImage
from daguerre.utils import make_hash, save_image, get_image_dimensions, KEEP_FORMATS, DEFAULT_FORMAT
 
# If any of the following errors appear during file manipulations, we will
            im = Image.open(im_file)
            im.load()
        format = im.format if im.format in KEEP_FORMATS else DEFAULT_FORMAT
 
        if self.adjust_uses_areas:

src/d/j/django-daguerre-HEAD/daguerre/helpers.py   django-daguerre(Download)
from daguerre.adjustments import registry
from daguerre.models import Area, AdjustedImage
from daguerre.utils import make_hash, save_image, get_image_dimensions, KEEP_FORMATS, DEFAULT_FORMAT
 
# If any of the following errors appear during file manipulations, we will
            im = Image.open(im_file)
            im.load()
        format = im.format if im.format in KEEP_FORMATS else DEFAULT_FORMAT
 
        if self.adjust_uses_areas:

src/m/i/mirocommunity-HEAD/localtv/tasks.py   mirocommunity(Download)
from celery.exceptions import MaxRetriesExceededError
from celery.task import task
from daguerre.utils import make_hash, KEEP_FORMATS, DEFAULT_FORMAT
from django.core.exceptions import ValidationError
from django.core.files.base import File
 
    f = video._meta.get_field('thumbnail')
    format = im.format if im.format in KEEP_FORMATS else DEFAULT_FORMAT
    args = (video.thumbnail_url, video.pk, datetime.datetime.now().isoformat())
    filename = '.'.join((make_hash(*args, step=2), format.lower()))

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)