Skip to content
Browse files

Image import changed (try avoiding Hash collision)

  • Loading branch information...
1 parent 1ff779b commit 2d3024fc8dc479e8ee789d2cc3a4ff672cc0d7a4 @whit whit committed Jul 8, 2010
Showing with 5 additions and 5 deletions.
  1. +1 −1 ella/ellaadmin/fields.py
  2. +1 −1 ella/newman/fields.py
  3. +2 −2 ella/photos/formatter.py
  4. +1 −1 ella/photos/models.py
View
2 ella/ellaadmin/fields.py
@@ -1,4 +1,4 @@
-import Image
+from PIL import Image
from StringIO import StringIO
from django.forms import fields
View
2 ella/newman/fields.py
@@ -1,4 +1,4 @@
-import Image
+from PIL import Image
import logging
try:
View
4 ella/photos/formatter.py
@@ -1,4 +1,4 @@
-import Image
+from PIL import Image
def detect_img_type(imagePath):
try:
@@ -130,7 +130,7 @@ def crop_to_ratio(self):
self.image = self.image.crop(crop_box)
return crop_box
-
+
def get_resized_size(self):
"""
Get target size for the stretched or shirnked image to fit within the
View
2 ella/photos/models.py
@@ -1,5 +1,5 @@
from django.core.files.images import get_image_dimensions
-import Image
+from PIL import Image
from datetime import datetime
from os import path
import os

0 comments on commit 2d3024f

Please sign in to comment.
Something went wrong with that request. Please try again.