becta logo
[oats-sig] Ang: Re: Ang: Re: Ang: Re: Ang: Re: Ang: Re: wmf to svg conversion

Robert Rasiewicz robert.wk at gmail.com
Tue Jul 8 09:25:59 BST 2008

Article: [oats-sig] Ang: Re: Ang: Re: Ang: Re: Ang: Re: Ang: Re: wmf to svg conversion

Mats,

Paste2Xaml libraries have been fixed by Andrej Benedik and he's released a
new version now.

I've subsequently updated the conversion util and added some exception
handling to it.
We should now be able to see if it's missing components or something else
causing it to fail on your machine.
In principle - if Paste2Xaml is working, the conversion util should work
also.

Updated files you can find here
   http://www.3point14.com/pub/WMF_to_SVG_0_2_binaries.zip
   http://www.3point14.com/pub/WMF_to_SVG_0_2_sources.zip

Attached are svg files created using the tool - I think you should find the
results satisfactory.

r.

On Sat, Jul 5, 2008 at 12:24 AM, Mats Lundälv <mats.lundalv at vgregion.se>
wrote:

> Hi Robert,
> Thanks for your efforts!
>
> I have now tested opening my wmf files with the Paste2Xaml tool - and
> unfortunately it does not handle any of the circles, semi-circle or circle
> segment components of the wmf:s - just like SVGFactory they just disappear.
> Only straight lines are displayed. I didn't manage to run your app, probably
> because I don't have the latest .net components installed - or is it a
> command line tool? Anyway it should not work any better than the Paste2Xaml
> routines that it uses, I suppose?
>
> The application that actually let's me both open the wmf:s correctly and
> save them as reasonably usable svg images now is OOo Draw. The problem there
> is that the line widths are set to zero, and that the black line colour is
> set to undefined. I can open these converted svg images in Inkscape and
> manually correct them to a good result - but it would be a HUGE work for the
> between 3000-4000 thousand files I'm working with - close to undoable.
>
> ImageMagick can also open and display the wmf:s correctly, but cannot
> convert to correct svg.
>
> The most promising auto-conversion tool so far is probably the
> wmf2svg-0.8.1.jar tool. It actually picks up all components of the wmf, and
> the converted svg:s are basically nicely displayed in both Firefox and
> Inkscape - except it cannot handle the circular elements correctly:
> Circles are correctly positioned but double diameter in size
> Semi-circles are collapsed to a blob - a very small filled semi-circle -
> incorrectly positioned
> Circle segments are displayed in a weird way - double diameter - incorrect
> position, orientation (ignored mirroring/flipping) and rotation (45
> degrees).
>
> So what are the alternatives:
> - Find a way to use the components that OOorg uses and try to get them
> improved
> or/and
> - Approach the developer of wmf2svg-0.8.1 and try to persuade him to take a
> look at my odd line drawing wmf files and try to handle the circular shapes
> better
> - others?
>
> I attach a few samples of the Blissymbol wmf files I'm struggling with, if
> any of you want to see for yourselves what happens ;-)
>
> Cheers,
> Mats
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.becta.org.uk/pipermail/oats-sig/attachments/20080708/0dd59aec/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bliss_svg.zip
Type: application/zip
Size: 2347 bytes
Desc: not available
Url : http://lists.becta.org.uk/pipermail/oats-sig/attachments/20080708/0dd59aec/attachment.zip 

  Main Becta Site  | Return to top