Skip to content

Instantly share code, notes, and snippets.

View edwardabraham's full-sized avatar

Edward Abraham edwardabraham

View GitHub Profile
@edwardabraham
edwardabraham / jpegfield.py
Created August 19, 2012 05:55 — forked from zmsmith/jpegfield.py
Implementation of a Django ImageField that converts all images to JPEG
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):