Best way to upload and resize image?

267 views
Skip to first unread message

frocco

unread,
Jan 13, 2013, 10:38:32 PM1/13/13
to django...@googlegroups.com
Hi All,
In the admin, I am using imageField to upload an image.
I install PIL and am overriding the save to create a thumbnail.
The problem I am having is the original upload is resized.
I want to keep the original and thumbnail, so I can allow the users to click and zoom the image.

Is there a better way to do this in django?
I thought about adding another imagefield and just resize that one.
But the user would have to select the same image file twice.

On another note, I just purchased PyCharm and am finding it pretty nice.


Nikolas Stevenson-Molnar

unread,
Jan 14, 2013, 12:24:28 AM1/14/13
to django...@googlegroups.com
This page refers to some pre-built solutions for thumbnails: https://code.djangoproject.com/wiki/ThumbNails

And yes, PyCharm is wonderful :)

_Nik

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/juMogcAZUdUJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

frocco

unread,
Jan 14, 2013, 6:57:02 AM1/14/13
to django...@googlegroups.com
Thank you
Reply all
Reply to author
Forward
0 new messages