Monday, May 31, 2010

Importing ImageField from file or - better - generating it from another ImageField

Hi folks

I am having huge problems wrapping my head around the ImageField field
type. I am trying to generate default thumbnails for uploaded images,
both stored as ImageField attributes. It's done this way because the
user must be able to manually edit the thumbnail if needed.

I am failing miserably at that. I went as far as to generate the
thumbnail and saving it to a specific location, but I have so far been
unable to attribute the contents of that file to the ImageField that
corresponds to the thumbnail.

Has anyone solved this problem in a simple way?

--
Ricardo Bánffy
http://www.dieblinkenlights.com
http://twitter.com/rbanffy

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.

No comments:

Post a Comment