Won't save as .wmf file with .jpg inserted in drawing

Bug #492904 reported by rbober2
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Medium
Unassigned
UniConvertor
New
Undecided
Unassigned

Bug Description

I opened a .wmf file and added a couple of .jpg pictures to the open file and then tried to save it. I got the following error report:

UniConvertor failed:
Traceback (most recent call last):
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app/plugins/Filters/svgloader.py", line 979, in Load
    xml_reader.parse(input_source)
  File "C:\Program Files\Inkscape\python\Lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Program Files\Inkscape\python\Lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "C:\Program Files\Inkscape\python\Lib\xml\sax\expatreader.py", line 207, in feed
    self._parser.Parse(data, is Final)
  File "C:\Program Files\Inkscape\python\Lib\xml\sax\expatreader.py", line 301, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app/plugins/Filters/svgloader.py", line 338, in start Element
    getattr(self, method)(attrs)
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app/plugins/Filters/svgloader.py", line 853, in image
    image = load_image(os.path.join(self.loader.directory, href)).image
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\image.py", line 87, in load_image
    image = PIL.Image.open(filename)
  File "C:\Program Files\Inkscape\python\lib\site-packages\PIL\Image.py", line 1888, in open
    fp = __builtin__.open(fp, "rb")
IOError: [Errno 2] No such file or directory: 'C:\\DOCUME~1\\HP_ADM~1\\LOCALS~1\\Temp\\file:///C:/Documents%20and%20Settings/HP_Administrator/Desktop/Floor%20Plan%20Test/Objects/Legend.jpg'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\__init__.py", line 72, in <module>
    doc = load.load_drawing(sys.argv[1])
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 364, in load_drawing
    return load_drawing_from_file(file, filename)
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\io\load.py", line 337, in load_drawing_from_file
    doc = loader.Load()
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app/plugins/Filters/svgloader.py", line 979, in Load
    xml_reader.parse(input_source)
  File "C:\Program Files\Inkscape\python\Lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Program Files\Inkscape\python\Lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "C:\Program Files\Inkscape\python\Lib\xml\sax\expatreader.py", line 207, in feed
    self._parser.Parse(data, is Final)
  File "C:\Program Files\Inkscape\python\Lib\xml\sax\expatreader.py", line 301, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app/plugins/Filters/svgloader.py", line 338, in start Element
    getattr(self, method)(attrs)
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app/plugins/Filters/svgloader.py", line 853, in image
    image = load_image(os.path.join(self.loader.directory, href)).image
  File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\Graphics\image.py", line 87, in load_image
    image = PIL.Image.open(filename)
  File "C:\Program Files\Inkscape\python\lib\site-packages\PIL\Image.py", line 1888, in open
    fp = __builtin__.open(fp, "rb")
IOError: [Errno 2] No such file or directory: 'C:\\DOCUME~1\\HP_ADM~1\\LOCALS~1\\Temp\\file:///C:/Documents%20and%20Settings/HP_Administrator/Desktop/Floor%20Plan%20Test/Objects/Legend.jpg'

In essence I am trying to merge a .wmf drawing and some .jpg objects into one .wmf file that I can import into another program. The procedure I used was to open the .wmf drawing, then I would open each .jpg photo and cut and paste it to original .wmf drawing. I would then try to save the new document as a .wmf file with a new name. I do not want to convert any of the .jpg's to .bmp as I loose way to much detail.

Can you tell me what I'm doing wrong.

Thanks

Revision history for this message
su_v (suv-lp) wrote :

possibly related to / duplicate of
Bug #487410 “export to EMF or WMF omits images from graphic”:
<https://bugs.launchpad.net/inkscape/+bug/487410>

tags: added: exporting uniconvertor wmf
jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Medium
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.