I would love to have PIL in sage, and for someone to fix the gd module that Tom Boothby worked on. I guess the advantage of gd is its speed. I think for both of them there are some issues on macs, with the jpeg library, but maybe that's been fixed in PIL now. With gd I remember I finally got it working on my macs but it was a confusing struggle (for me, but I am pretty ignorant about library linking issues).
-M. Hampton On Nov 21, 2:22 pm, "David Joyner" <[EMAIL PROTECTED]> wrote: > On Fri, Nov 21, 2008 at 11:00 AM, William Stein <[EMAIL PROTECTED]> wrote: > > > On Fri, Nov 21, 2008 at 7:20 AM, Jason Bandlow <[EMAIL PROTECTED]> wrote: > > >> -----BEGIN PGP SIGNED MESSAGE----- > >> Hash: SHA1 > > >> Ronan Paixão wrote: > >>> Hey, that's much more awesome! It lacks some antialiasing, though. > > >>> Maybe we should add image manipulation support like those new > >>> Mathematica features: > >>>http://www.wolfram.com/products/mathematica/newin7/content/BuiltInIma... > > >>> It sure would be nice to have PIL > >>>http://www.pythonware.com/products/pil/in sage. I don't see it at > >>>http://sagemath.org/packages/standard/ > >>> It appears the newest version supports converting to/from numpy arrays: > >>>http://effbot.org/zone/pil-changes-116.htm > >> Incidentally, I just (two days ago) downloaded PIL and installed it > >> with a simple > >> $ sage -python setup.py install > > >> The only issue using it was that I needed: Integer = int > >> but after that it worked wonderfully. > > >> I got to show my Linear Algebra class how to compress images with the > >> singular value decomposition... it was pretty fun. > > >> As far as I could tell, it's the canonical library for image > >> manipulation with Python. If anyone was proposing including this in > >> standard Sage, it would get a hearty +1 from me. > > >> - -Jason > > +1 from me too. I'd also volunteer to help with wrappers/interface, if needed. > > > > > The license is very very open source according to the website: > > > http://www.pythonware.com/products/pil/license.htm > > > I've made an optional PIL spkg (it's small -- 384kb) and posted it here: > > > http://sagemath.org/packages/optional/ > > > Just do > > > sage -i pil-1.1.6 > > > and it should install on most any system with a compiler in less than > > a minute. (Let me know if it doesn't!) I put in a trick so that it will > > even > > install if ones tk install isn't sufficient (there were problems on > > sage.math, > > for example). > > > Try out the tutorial: > > http://www.pythonware.com/library/pil/handbook/introduction.htm > > > You can work with png files in Sage, but not jpg, since we don't ship > > libjpg. > > > I did try opening an image, and manipulating and saving the result > > and it worked fine. > > > Depending on feedback in this thread, I think we should consider > > possibly including PIL standard in Sage. One could quickly make > > some interesting interacts using it... > > > William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---