Re: Problem with Pillow image resize and save

2014-10-25 Thread Aliane Abdelouahab
ah, ok :) just as another idea, you can handle the image uploads with Nginx, this will free Python from dealing static files. Le samedi 25 octobre 2014 20:31:35 UTC+1, John a écrit : > > That's a good idea, Aliane. In my case, the server was lightly loaded, > the conversion time is very short a

Re: Problem with Pillow image resize and save

2014-10-25 Thread John
That's a good idea, Aliane. In my case, the server was lightly loaded, the conversion time is very short and the admin was only used by a very small number of users who were sufficiently patient. John On 25/10/14 20:23, Aliane Abdelouahab wrote: > You have to send the picture editing to another p

Re: Problem with Pillow image resize and save

2014-10-25 Thread Aliane Abdelouahab
You have to send the picture editing to another process, because you will block the operation untill the image will be converted! Le samedi 25 octobre 2014 19:23:33 UTC+1, John a écrit : > > On 25/10/14 15:26, Daniel Grace wrote: > > I need to include the following steps, but I don't know how

Re: Problem with Pillow image resize and save

2014-10-25 Thread John
On 25/10/14 15:26, Daniel Grace wrote: > I need to include the following steps, but I don't know how: > 1. copy the 'picture' file > 2. resize it (the copy) > 3. save it to the upload directory > 4. store it in the 'thumb' field > ... continue as before and save the 'profile'. > -- Daniel, I've

Re: Problem with Pillow image resize and save

2014-10-25 Thread Daniel Grace
I need to include the following steps, but I don't know how: 1. copy the 'picture' file 2. resize it (the copy) 3. save it to the upload directory 4. store it in the 'thumb' field ... continue as before and save the 'profile'. -- You received this message because you are subscribed to the Google

Problem with Pillow image resize and save

2014-10-24 Thread Daniel Grace
Hi, I am trying to put together some code for resizing an image and storing the resized image on the database, but I am running into some problems having struggled to find some decent examples online. Here is what I have come up with so far, in the model: class UserProfile(models.Model): u