I&#39;m wondering if anyone has any idea how to get better results from PIL&#39;s rotate() function? No matter what filter I use I&#39;m getting very jagged edges after rotating an image.<br><br>Here&#39;s how I&#39;m invoking the filters:<br>
<br>pic = pic.rotate(random_rotation, resample=Image.NEAREST, expand=1)    <br>pic = pic.rotate(random_rotation, resample=Image.BILINEAR, expand=1)    <br>pic = pic.rotate(random_rotation, resample=Image.BICUBIC, expand=1)    # the best I think<br>
<br>I posted a sample app that opens an image and rotates it using each of the filters. You can see the jagged edges pretty plainly.<br><br>I have a slideshow app that I&#39;m working on where these edges are very obvious, so I&#39;m wondering if anyone might have any tips on getting better results from rotate(), or from some other method or module that might do a better job?<br>
<br>My very simple sample app that tests each of the filters is here:<br><br><a href="http://sinkingsensation.com/stuff/rotation_test.zip">http://sinkingsensation.com/stuff/rotation_test.zip</a><br><br><br>