[Image-SIG] PIL crash bug sharpening

Fredrik Lundh fredrik at pythonware.com
Thu Apr 16 19:34:40 CEST 2009


On Thu, Apr 16, 2009 at 7:00 PM, Zac Burns <zac256 at gmail.com> wrote:
> PIL will cause a crash in python.exe when sharpening very small images.
>
> Repro:
>
> img = PImage.new('RGB', (1, 1))
> img = PImageEnhance.Sharpness(img).enhance(1.5)

Thanks for reporting this.  A workaround is available here:

    http://hg.effbot.org/pil-2009-raclette/changeset/d1c45b7eb7d7/

(the patch is against 1.1.7, but the Filter.c part should apply
cleanly on 1.1.6)

</F>


More information about the Image-SIG mailing list