Re: ATCT .21 PIL ratio problem
"Alexander Limi" <limi-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Organization | Plone Solutions · http://www.plone solutions.com |
| Message-ID | <[email protected]> |
On Thu, 02 Feb 2006 13:04:49 -0800, Kevin Kalupson <kjk137-CSVDDDRijWZWk0Htik3J/[email protected]> wrote: > 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 think this is a case of using a version of PIL that is too old. PIL 1.1.5 is minimum version. PS: You're on the wrong list. (it's OK, but use Plone Users or AT Users list the next time? :) -- _____________________________________________________________________ Alexander Limi · Chief Architect · Plone Solutions · Norway Consulting · Training · Development · http://www.plonesolutions.com _____________________________________________________________________ Plone Co-Founder · http://plone.org · Connecting Content Plone Foundation · http://plone.org/foundation · Protecting Plone ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642