SVG and media output not working on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
jazzynico |
Bug Description
First commented in wishlist Bug #386664.
Using File>Save As>Compressed Inkscape SVG with media (file with imported images) leads to an invalid zip file, which contains only the beginning of an image file (PK♥♦¶ ₧╟:ë>╦ä♫▼ ♫▼ ► spiro_smooth.
The bug is in the extension svg_and_
It may be due to the fact that the zip file is first created in a temporary directory, and then copied to the final location using sys.stdout:
out = open(self.
out.close()
The temporary zipped file works well, but after opening it and writing it to stdout, it fails on Windows XP.
Works well on Ubuntu 9.04, rev. 21669.
Changed in inkscape: | |
assignee: | nobody → JazzyNico (jazzynico) |
status: | Confirmed → In Progress |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
In windows if I force it to do a binary read using the statement : zip_file, 'rb') zip_file, 'r')
out = open(self.
instead of : out = open(self.
then I get the following zip file. This file is no longer empty, it apears to contain 2 files. But when I try to extract it then I get a crash in Winzip.