ATCT .21 PIL ratio problem
Kevin Kalupson <kjk137-CSVDDDRijWZWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Sorry for asking about a way old version, but I'm stuck.
I'm in Plone 2.05, with ATCT 0.21. I'm trying to create some images
with parentDir.invokeFactory(id=imageName,type_name='ATImage')
I end up with an error,
File "/usr/local/zope/lib/python/Products/Archetypes/Field.py", line
2269, in scale
image.save(thumbnail_file, format, quality=self.pil_quality)
File "/usr/lib/python2.3/site-packages/PIL/Image.py", line 1136, in save
SAVE[string.upper(format)](self, fp, filename)
File "/usr/lib/python2.3/site-packages/PIL/PngImagePlugin.py", line
445, in _save
ImageFile._save(im, _idat(fp, chunk), [("zip", (0,0)+im.size, 0,
rawmode)])
File "/usr/lib/python2.3/site-packages/PIL/ImageFile.py", line 385, in
_save
e.setimage(im.im, b)
SystemError: tile cannot extend outside image
my googling seems to indicate that this is a PIL bug that happens when
trying to create images with 'not so common' ratios such as (i.e. 600x15)
has anyone here came up with a workaround?
I appreciate it,
-Kevin
smime.p7s
(application/x-pkcs7-signature, 3.2 KB) - not displayed