Hi Jay,

Here's a custom field that automatically resizes the uploaded image
using PIL. You should be able to modify save_file() to adjust the JPEG
compression level on pil_obj.save()

In fact we might add this as an optional parameter in the next version.

http://www.verdjn.com/wiki/PhotoField

Bryan


On 8/11/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
> Anybody have any code lying around to automatically compress JPEGs
> that are uploaded in the Admin via a FileField/ImageField? Many of my
> users aren't in a position to know how to compress images themselves,
> and our site certainly doesn't need full quality JPEGs.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to