problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
I have a model that uses sorl-thumbnail.ImageWithThumbnailsField: class Vendor(models.Model): url = models.URLField() logo = ImageWithThumbnailsField( blank = True, null = True, upload_to = 'logos', thumbnail={'size': (80, 80)} ) When I try to create a

Re: problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
More info: >>> im = Image.open('my_logo.png') >>> outfile = 'my_logo.jpg' >>> im.save(outfile) Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/site-packages/PIL/Image.py", line 1272, in save self.load() File "/usr/lib/python2.4/site-packages/PIL/ImageFil

Re: problem with sorl-thumbnail invalid image

2009-03-21 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 17:33 -0700, Nate Reed wrote: [...] > Is there some way I can work with interlaced PNG's in PIL? Typing "PIL interlaced PNG" into Google suggests not. That's one of those problems that will be fixed by somebody with sufficient motivation to write a patch for PIL, I suspect.

Re: problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
As a workaround I used Gimp to convert this image to a compatible format before uploading it. Hopefully my users won't mind this limitation. It does seem a rather glaring omission from PIL, though, doesn't it? Nate On Sat, Mar 21, 2009 at 5:38 PM, Malcolm Tredinnick < malc...@pointy-stick.com>

Re: problem with sorl-thumbnail invalid image

2009-03-22 Thread DLitgo
Nate, I had a similar problem to this, I'm not sure if its the exact same issue, but by any chance did you use Photoshop to create/save the image as png? I noticed that by default Photoshop saves the image as an "Adobe Photoshop PNG File" as opposed to "Portable Networks Graphic Image" file. Ther

Re: problem with sorl-thumbnail invalid image

2009-03-22 Thread Nate Reed
No, I didn't create the image. I'm guessing you chose the "Interlaced" option, or that "Adobe Photoshop PNG" is an interlaced PNG format. I'm not that familiar with Photoshop. On Sun, Mar 22, 2009 at 4:22 PM, DLitgo wrote: > > Nate, > > I had a similar problem to this, I'm not sure if its the