Faulty rendering of WMF files

Asked by Brendan James

When I loaded a WMF chemical structure it was rendered in a most unusual way. This is the SVG I get out of its faulty rendering. I'd like the letters to be where they were originally when I created this file with ChemSketch.

Question information

Language:
English Edit question
Status:
Open
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Brynn (brynn4inks-deactivatedaccount) said :
#1

Could you provide a link to the image? Images can't be uploaded or attached here. But if you have a link, we can see what you mean.

Also, please provide your Inkscape version and operating system.

Or you may want to consider posting at a regular forum, where files can be attached or embedded. Here are all the Inkscape forums that I know about: http://inkscape.org/en/learn/

Also, I searched the Bugs section, and found numerous issues regarding WMF files. https://bugs.launchpad.net/inkscape?field.searchtext=wmf&search=Search&field.status%3Alist=NEW&field.status%3Alist=INCOMPLETE_WITH_RESPONSE&field.status%3Alist=INCOMPLETE_WITHOUT_RESPONSE&field.status%3Alist=CONFIRMED&field.status%3Alist=TRIAGED&field.status%3Alist=INPROGRESS&field.status%3Alist=FIXCOMMITTED&field.assignee=&field.bug_reporter=&field.omit_dupes=on&field.has_patch=&field.has_no_package=

Revision history for this message
Brendan James (brendanjames) said :
#2
Revision history for this message
Brynn (brynn4inks-deactivatedaccount) said :
#3

And could we see what it's supposed to look like?

I am generally familiar with chemical structures like that. But not enough to know what they represent, or what that one is supposed to look like. And of course I can see that some parts have been cut off.

Without knowing what it's supposed to look like, I might guess that the entire image is not inside the page border (because of how it looks partly cut off).

Beyond that, I'd have to see the SVG file and maybe the WMF file. And that can't be done here. Or maybe someone else knows more than I do?

Revision history for this message
Brendan James (brendanjames) said :
#4

Operating System: Windows 8. Inkscape version: 0.48. This is what it's supposed to look like https://en.wikipedia.org/wiki/File:Lofexidine2DACS.svg

Revision history for this message
Brynn (brynn4inks-deactivatedaccount) said :
#5

Oh, I see. Somehow, the text is shifted upwards from the....whatever you call the rest of it.

It's hard to say what might cause that. Did you edit the file at all, after opening the WMF in Inkscape? If so, do you remember the exact steps you took?

Did you find anything in the bug search, that seems to be related? Have you tried this WMF to SVG conversion before (using WMF from the ChemSketch program)?

If you could provide a link where I could download the WMF, I'd be glad to try it myself. I still might not be able to solve the problem. But the reproducability of the problem might be helpful.

I'm not familiar with ChemSketch at all. But often when a file comes from another program like that, it can carry bits and pieces that Inkscape doesn't know how to handle (or just can't handle).

Revision history for this message
Brendan James (brendanjames) said :
#6

Well Scribus was able to render ChemSketch-created WMFs just fine. In fact that's how I created the structure on Wikipedia I showed ya. I didn't edit the WMF in Scribus, however. Here's the WMF https://drive.google.com/file/d/0B1_sXH68hMWBUGQ3dWVJX2wzUm8/edit?usp=sharing

Revision history for this message
Brynn (brynn4inks-deactivatedaccount) said :
#7

Interesting. It opens just like that, for me too. And it opens as a group of 27, meaning that Inkscape sees it as 1 single object.

I thought the text might have been shifted because of something about the original WMF. But if it's all 1 object, I don't understand how that might have happened.

Someone besides me will need to look at it, to figure out why that happened, if you need to know. This is beyond my skills.

If I have a chance, I'll look through all those bug reports, to find out if something like this has ever been reported before.

Or if you think it's a bug, you're welcome to make a bug report yourself.

But I'm glad you managed to make it work with Scribus.

Can you help with this problem?

Provide an answer of your own, or ask Brendan James for more information if necessary.

To post a message you must log in.