Skip to content

Instantly share code, notes, and snippets.

Edward Abraham edwardabraham

Block or report user

Report or block edwardabraham

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@edwardabraham
edwardabraham / jpegfield.py
Created Aug 19, 2012 — forked from zmsmith/jpegfield.py
Implementation of a Django ImageField that converts all images to JPEG
View jpegfield.py
import os
from PIL import Image
import cStringIO
from django.core.files.base import ContentFile
from django.db.models import ImageField
from django.db.models.fields.files import ImageFieldFile
class JPEGImageFieldFile(ImageFieldFile):
You can’t perform that action at this time.