On Sun, Oct 25, 2009 at 1:05 PM, William Stein <wst...@gmail.com> wrote: > > Hi Sage-Devel, >
... > > 5. I try again from scratch with a.thumbnail((int(1000),int(1000))) > to force plane Python ints. This works: > > sage: import Image > sage: a = Image.open('huge.png') > sage: time a.thumbnail((int(1000),int(1000))) > CPU times: user 5.54 s, sys: 0.47 s, total: 6.01 s > Wall time: 6.25 s > sage: a.save('smaller.png') > sage: !ls -lh smaller.png > -rw-r--r-- 1 wstein staff 618K Oct 25 10:03 smaller.png > > So... it's awesome that we have PIL in Sage! But we are going to have > to do some polish (possibly patches), just like with Numpy, so that it > plays well with Sage datatypes. > > I hope other people will try PIL and provide feedback in this thread. The patch http://trac.sagemath.org/sage_trac/ticket/6741 is an attempt to start a patch which makes PIL play nicer with Sage. It is not perfect but I hope some of it is useful. I'm busy this semester and probably can't work on it much. > -- > William Stein > Associate Professor of Mathematics > University of Washington > http://wstein.org > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---