[Baypiggies] Cairo Question
Andy Toulouse
andrew at atoulou.se
Tue Jul 28 02:07:25 CEST 2009
I've had good experiences with Cairo. One caveat is that because the C
documentation is solid, the Python bindings are not as well
documented. However, this is a minuscule annoyance, the bindings map
very well.
For streaming out images I believe a common idiom is to write the PNG
to a cStreamIO object. I am not familiar with the SVG backend of
Cairo, unfortunately, and if you run into issues I'd say they're most
likely to be here.
In any case, it's a fun API, and pretty speedy IMO. Have fun and I
hope to hear about your experiences with it!
--Andy
On Jul 27, 2009, at 4:45 PM, Glen Jarvis wrote:
> My basic Wiki searching has told me that this is done via Cairo and
> there are Python bindings. Let me amend my question. Does anyone
> have experience with this? Are there any gotchas?
>
> Cheers,
>
>
> Glen
>
>
> On Jul 27, 2009, at 4:30 PM, Glen Jarvis wrote:
>
>> Please don't 'x' me off the list for asking a Java question :)
>>
>> I am *not* a Java programmer. I am also *not* a Perl programmer. I
>> am moving to a new task to review a set of software written in Perl
>> that accesses Java Batik (http://xmlgraphics.apache.org/batik/).
>> Normally, I'd want to rewrite in Python just because I like Python
>> so much.
>>
>> However, surprisingly, this code isn't too bad at all -- that says
>> something if a non-perl programmer can read it :)
>>
>> Also, Batik is an Apache XML Graphics Project -- So, I need to
>> decide on another infrastructure or to stick with what we have. Has
>> any other python developers ran into this? Did you stick with what
>> worked? Did you rewrite? Can PIL do SVG graphics?
>>
>> Also note that we'd like real-time rendering (if possible) via URL
>> (like Google Graph API).
>>
>> This is an experienced based question - not a technology question.
>> Sometimes it's better to reuse -- sometimes it's better to rewrite.
>
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
More information about the Baypiggies
mailing list