Richard Ash wrote:
> Now that mediawiki has SVG image support built in (it renders them to PNG for 
> browsers that can't read SVG graphics), is there support in mwlib? At the 
> moment I get an warning:
> rlwriter.warning >> img can not be opened by PIL
> for each SVG image in the page, and no images in the rendered PDF.
>   
Hi Richard,
how did you configure your MediaWiki to make it return svg images? I 
checked on en.labs.wikimedia.org, en.wikipedia.org and they all return 
png images (if images are fetched via mwapidb). Is your wiki publicly 
accessible - that would make testing easier for me ;)

> This is a considerable pain for my local wiki (which has a lot of SVG 
> diagrams) but will also affect wikipedia sites because they are now using SVG 
> for diagrams etc. Given that the wiki server can convert them to PNG (this 
> has to be available for the mediwiki install to work with SVGs), can mwlib 
> not retrieve the PNG version to use if PIL doesn't have SVG support?
>
> It looks like ReportLab might be able to ingest the SVG files directly:
> http://python.net/~gherman/svglib.html
> http://python.net/~gherman/presentations/rlgsvg-epc2002.pdf
>
>   
Thanks for the hint. Just a note for future reference, the up to date 
packages reside on http://pypi.python.org/pypi/svglib/0.6.0

Anyways I am going to convert svg images to png, since that makes the 
image handling easier. The problem are inline images that reside inside 
a paragraph - reportlab can't handle svg images there.

Regards,
Volker

-- 
volker haas                 brainbot technologies ag
fon +49 6131 2116394        boppstraße 64
fax +49 6131 2116392        55118 mainz
[EMAIL PROTECTED]    http://www.brainbot.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to