Re: save cropped image with PIL to database

2017-07-13 Thread 'Tom Evans' via Django users
On Mon, Jul 3, 2017 at 11:09 AM, shahab emami wrote: > hello > > i have a question and i cant find answer with search. > > i want to save cropped image in database then : > this is my model: > > class Photo(models.Model): > file= models.ImageField(upload_to='%Y/%m/%d', > blank=True,nul

Re: save cropped image with PIL to database

2017-07-06 Thread Melvyn Sopacua
On Monday 03 July 2017 03:09:56 shahab emami wrote: > hello > > i have a question and i cant find answer with search. Really? https://duckduckgo.com/?q=django+resize+image&t=ffsb&ia= software -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Djan

Re: save cropped image with PIL to database

2017-07-04 Thread Andréas Kühne
Sorry - can't help you there. I prefer using pip packages than writing my own code - where possible. :-) Regards, Andréas 2017-07-04 10:15 GMT+02:00 shahab emami : > but i want to do it myself. > > when i write code i can improve it as much as i can. > can anybody please tell me about my mistak

Re: save cropped image with PIL to database

2017-07-04 Thread shahab emami
but i want to do it myself. when i write code i can improve it as much as i can. can anybody please tell me about my mistake please On Monday, July 3, 2017 at 9:12:55 PM UTC+4:30, Andréas Kühne wrote: > > I would have a look at the easy-thumbnails plugin ( > http://easy-thumbnails.readthedocs.io

Re: save cropped image with PIL to database

2017-07-03 Thread Andréas Kühne
I would have a look at the easy-thumbnails plugin ( http://easy-thumbnails.readthedocs.io/en/2.1/). It uses pillow behind the scenes and it is very easy to do the cropping and everything that you need and you don't need to write it yourself :-) Regards, Andréas 2017-07-03 12:09 GMT+02:00 shahab