user_media.processors: 4 total statements, 100.0% covered

Generated: Tue 2014-07-15 16:34 CEST

Source file: /home/dkaufhold/projects/django-user-media/src/user_media/processors.py

Stats: 4 executed, 0 missed, 0 excluded, 4 ignored

  1. """Image processors for easy_thumbnails."""
  2. def crop_box(im, box=False, **kwargs):
  3. """Uses box coordinates to crop an image without resizing it first."""
  4. if box:
  5. im = im.crop(box)
  6. return im