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/BuiltInImageProcessing/
>>>
>>> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to