EMF import: Figure not positioned or sized correctly in document

Bug #341847 reported by JasonT
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
Alvin Penner

Bug Description

Running windows XP SP2, 32 bit.
Using Mirrored Win32 Builds (Inkscape20880-0903101833.7z).

With some emf graphics Inkscape imports the graphic and creates the correct document page size, but the graphic is shifted outside the document page and is scaled larger than the original. It appears as if there is an anchor placed within the top left corner of the imported graphics group and the anchor is positioned in the top left corner of the document page. This could explain the shift occurring, but not the scaled size of the image. Additionally all text has been shifted downward slightly (possibly 2nd bug).

An example file is attached.
The document page size is 500ptx300pt.
The image is suppose to fit neatly within the document page.
The figure was a graph in Excel which I pasted into PowerPoint as an emf figure. I then saved this from PowerPoint into an emf file.

Tags: emf importing
Revision history for this message
JasonT (pismo-byu) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on WIndows XP, Inkscape rev. 21460.

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
tags: added: emf import-export
Revision history for this message
free_electron (vincent-himpe) wrote :

Same problem here. Almost all EMF files have problems. Text is shifted , wrong scale , wrong font , words are broken in half and letters shifted. Windows 7 . Inkscape 4.7 r22583.

These files give no problems whatsoever when opening in Microsoft Word or Adobe illustrator. Guess the inkscape devteam has some work to do. This is not ready for prime time yet. Like it or not but EMF and AI are mayor formats in the printing world...

Revision history for this message
Alvin Penner (apenner) wrote :

fix committed to bzr rev 10017. There was a scaling problem that affected some files, but not others, depending on the source of the file.

Changed in inkscape:
status: Confirmed → Fix Committed
Revision history for this message
Alvin Penner (apenner) wrote :

patch committed to bzr rev 10019 : recalculate text alignment if the text is rotated.

su_v (suv-lp)
Changed in inkscape:
assignee: nobody → Alvin Penner (apenner)
milestone: none → 0.49
Revision history for this message
su_v (suv-lp) wrote :

Backported to the 0.48.x branch in revision 9803 (milestone 0.48.2).

tags: added: importing
removed: import-export
Changed in inkscape:
milestone: 0.49 → 0.48.2
Revision history for this message
Mattias Ohlsson (mattias-oh) wrote :

Hi!

Great progress you've done here, the EMF-files look much better when opened in the newer versions of Inkscape. There is however some of them that still has the wrong size/ratio.

I'm running Inkscape_r10414-201107042125.7z downloaded from http://inkscape.modevia.com/win32/ on a Windows Vista 32-bit.

For some of the EMF-files the generation works, but some other have the same symptoms as described in this bug report (correct document size but the actual graphics is either to small or to big).

Some example files are included with the original EMF-file and its generated SVG-file.

Thanks for the good work so far, Inkscape is the _only_ free tool I've seen that gives usable results when working with EMF-files. Hope the last bugs can be hammered out as well!

Revision history for this message
Alvin Penner (apenner) wrote :

thanks, problem reproduced in bzr rev 10505.
I'll put it on my list of things to look at.

Revision history for this message
Alvin Penner (apenner) wrote :

the scaling formulas have been re-defined, changes committed to rev 10526.

attached is the result obtained when I import the file example2.emf

Ted Gould (ted)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.