[sage-devel] Re: PIL interface questions

2009-08-09 Thread David Joyner
On Mon, Jul 13, 2009 at 4:53 PM, Ondrej Certik wrote: > ... >> >> This is a more complicated package than PIL, but I think one should work >> with it >> (which I plan to do) before proposing what Sage should include. > > > I see, thanks. Post here how it goes. I have looked at both VIPS and P

[sage-devel] Re: PIL interface questions

2009-07-15 Thread Ondrej Certik
On Wed, Jul 15, 2009 at 6:54 PM, J Elaych wrote: > > >> >> > I'd like to hear what other people think:  is that factor of 1.5 or >> > 2.0 in speed >> > enough to motivate switching to vips for the default sage imaging >> > library? >> >> Is PIL really the default? I did not know that. >> >> I don'

[sage-devel] Re: PIL interface questions

2009-07-15 Thread J Elaych
> > > I'd like to hear what other people think:  is that factor of 1.5 or > > 2.0 in speed > > enough to motivate switching to vips for the default sage imaging > > library? > > Is PIL really the default? I did not know that. > > I don't mean for my comments to be interpreted for or against PIL.

[sage-devel] Re: PIL interface questions

2009-07-15 Thread David Joyner
On Mon, Jul 13, 2009 at 7:09 PM, J Elaych wrote: > > Interesting, but I'm especially impressed by how well PIL stands up > to VIPS.  It looks like vips was primarily designed to have a small > memory > imprint, especially for image files that are larger than physical > memory.  PIL > takes only ab

[sage-devel] Re: PIL interface questions

2009-07-13 Thread Jason Grout
David Joyner wrote: > I have some comment below but would like to first make some general > observations. > Certainly I am not the expert on image processing but I have now spent > a week or 2 on > PIL. I know others have spoken in favor of PIL (I think Jason Grout > and maybe some others) > and t

[sage-devel] Re: PIL interface questions

2009-07-13 Thread J Elaych
Interesting, but I'm especially impressed by how well PIL stands up to VIPS. It looks like vips was primarily designed to have a small memory imprint, especially for image files that are larger than physical memory. PIL takes only about 1.5 times as long as vips on a dual core processor, so I wo

[sage-devel] Re: PIL interface questions

2009-07-13 Thread Ondrej Certik
On Mon, Jul 13, 2009 at 2:02 PM, David Joyner wrote: > > On Mon, Jul 13, 2009 at 2:16 PM, Ondrej Certik wrote: >> >> On Sun, Jul 12, 2009 at 8:30 PM, David Joyner wrote: >>> > > ... > >> >> So what are the arguments against PIL and for VIPS? > > Here are two reasons ("Why use VIPS?") > http://www.

[sage-devel] Re: PIL interface questions

2009-07-13 Thread David Joyner
On Mon, Jul 13, 2009 at 2:16 PM, Ondrej Certik wrote: > > On Sun, Jul 12, 2009 at 8:30 PM, David Joyner wrote: >> ... > > So what are the arguments against PIL and for VIPS? Here are two reasons ("Why use VIPS?") http://www.vips.ecs.soton.ac.uk/supported/7.18/doc/html/vipsmanual/vipsmanualse13.

[sage-devel] Re: PIL interface questions

2009-07-13 Thread Ondrej Certik
2009/7/13 William Stein : > > 2009/7/13 Minh Nguyen : >> >> On Tue, Jul 14, 2009 at 4:16 AM, Ondrej Certik wrote: >> >> >> >>> What I hate about PIL is the lack of docstrings with example doctests. >>> But honestly, I hate this about Python standard library too! >>> >>> Things like this: >>> >>>

[sage-devel] Re: PIL interface questions

2009-07-13 Thread William Stein
2009/7/13 Minh Nguyen : > > On Tue, Jul 14, 2009 at 4:16 AM, Ondrej Certik wrote: > > > >> What I hate about PIL is the lack of docstrings with example doctests. >> But honestly, I hate this about Python standard library too! >> >> Things like this: >> >> In [1]: a = "s" >> >> In [4]: a.format? >

[sage-devel] Re: PIL interface questions

2009-07-13 Thread Minh Nguyen
On Tue, Jul 14, 2009 at 4:16 AM, Ondrej Certik wrote: > What I hate about PIL is the lack of docstrings with example doctests. > But honestly, I hate this about Python standard library too! > > Things like this: > > In [1]: a = "s" > > In [4]: a.format? > Type:           builtin_function_or_met

[sage-devel] Re: PIL interface questions

2009-07-13 Thread Ondrej Certik
On Sun, Jul 12, 2009 at 8:30 PM, David Joyner wrote: > > I have some comment below but would like to first make some general > observations. > Certainly I am not the expert on image processing but I have now spent > a week or 2 on > PIL. I know others have spoken in favor of PIL (I think Jason Gro

[sage-devel] Re: PIL interface questions

2009-07-12 Thread David Joyner
I have some comment below but would like to first make some general observations. Certainly I am not the expert on image processing but I have now spent a week or 2 on PIL. I know others have spoken in favor of PIL (I think Jason Grout and maybe some others) and that motivated me to spend some tim

[sage-devel] Re: PIL interface questions

2009-07-06 Thread Ondrej Certik
On Mon, Jul 6, 2009 at 11:14 AM, David Joyner wrote: > > On Mon, Jul 6, 2009 at 12:49 PM, Ondrej Certik wrote: >> >> On Sun, Jul 5, 2009 at 7:05 PM, David Joyner wrote: >>> > > ... > >>> >>> 4. Should I interface also with pyglet classes? (Pyglet is included with >>>    sympy, hence with sage, and

[sage-devel] Re: PIL interface questions

2009-07-06 Thread David Joyner
On Mon, Jul 6, 2009 at 12:49 PM, Ondrej Certik wrote: > > On Sun, Jul 5, 2009 at 7:05 PM, David Joyner wrote: >> ... >> >> 4. Should I interface also with pyglet classes? (Pyglet is included with >>    sympy, hence with sage, and does some very very basic "image >>    processing".) Again, I don'

[sage-devel] Re: PIL interface questions

2009-07-06 Thread Ondrej Certik
On Sun, Jul 5, 2009 at 7:05 PM, David Joyner wrote: > > Hi: > > I'm working on a user-friendly, intuitive interface to PIL and have some > questions. Before preparing a patch, I was hoping that members of this > group would suggest ways to proceed. > > Here is what I've done so far: in the module