Sunday, January 13, 2013

Re: Best way to upload and resize image?

This page refers to some pre-built solutions for thumbnails: https://code.djangoproject.com/wiki/ThumbNails

And yes, PyCharm is wonderful :)

_Nik

On Jan 13, 2013, at 7:38 PM, frocco <farocco@gmail.com> wrote:

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.



--
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-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate