Re: manipulating images

2006-06-21 Thread mwtb
kwe wrote: > I guess this means "if the PIL Image class can be used directly as > input to the save_FIELD_file() call." - it can't ? > > sorry new to python and just want to check I'm reading the error > correctly. Any ideas on how to change the type? Again, I'm not somewhere I can confirm

Re: manipulating images

2006-06-20 Thread mwtb
Sasha wrote: > def save(self): > super(Picture, self).save() > if self.image and not self.thumbnail: > import Image > myImage = Image.open(self.get_image_filename()) > myImage.thumbnail((150,150))

Re: FileField - my variable used in "upload_to" parameter

2006-06-20 Thread mwtb
[EMAIL PROTECTED] wrote: > Hi! > > Is there way to change "upload_to" parameter's behaviour? > I see there is hardcoded strftime replacement. > > What I want to achieve is to organise uploaded files with directories > named with uploading user's name. eg. MEDIA_ROOT/uploads// > Jay's patch is

Re: Processing Image on Save

2006-06-16 Thread mwtb
Phil Powell wrote: > My suggestion would be to create > a new field type which does everything in one place - perhaps use > ImageField code as a basis for an ImageFromUrlField, using the data > from the URL instead of the POST data? Okay, I haven't looked at that, so at least it's a new

Processing Image on Save

2006-06-16 Thread mwtb
Hi, I've asked a couple of times on #django about this and although I've had some friendly attempts to help, I haven't resolved my problem, so I thought I'd try here. I've blogged about the problem at http://manwiththebones.dyndns.org/wordpress/?p=110, but I'll just restate the intention