Optimized SVG is corrupt
Bug #587746 reported by
Rena Kunisaki
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
jazzynico | ||
Scour |
Fix Released
|
High
|
Unassigned |
Bug Description
When saving a complex image as Optimized SVG, paths and dimensions may be corrupted.
1) Open attached document.
2) Save a copy as optimized SVG.
3) Compare the images; the optimized version now has a vertex moved near the upper left corner producing a large black triangle across the image, and the page size is very small; 2x3 pixels in my case.
Related branches
tags: |
added: saving removed: corrupt optimize save |
Changed in scour: | |
importance: | Undecided → High |
Changed in scour: | |
status: | Fix Committed → Fix Released |
Changed in inkscape: | |
status: | In Progress → Fix Committed |
Changed in inkscape: | |
milestone: | none → 0.49 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
In parts reproduced with Inkscape 0.47 and 0.47+devel r9456 on OS X 10.5.8:
- The corruption of the upper left path still happens with r9456 but to a lesser degree (see attached file).
- The page size stays unchanged in both 0.47 and r9456. Using default settings for the 'Optimized SVG' options I can't reproduce the 2x3 px size.
<off-topic>
@JazzyNico - scour.py in r9456 (with default export options) fails with
Traceback (most recent call last): inkscape. py", line 54, in <module> output= False) blue/src/ Inkscape/ src/inkscape- repo/mp- x11/Build/ share/inkscape/ extensions/ inkex.py" , line 215, in affect inkscape. py", line 47, in effect stdout. write(scourStri ng(input. read(), self.options) .encode( "UTF-8" )) blue/src/ Inkscape/ src/inkscape- repo/mp- x11/Build/ share/inkscape/ extensions/ scour.py" , line 2306, in scourString s(elem, options) blue/src/ Inkscape/ src/inkscape- repo/mp- x11/Build/ share/inkscape/ extensions/ scour.py" , line 1950, in embedRasters
File "scour.
e.affect(
File "/Volumes/
self.effect()
File "scour.
sys.
File "/Volumes/
embedRaster
File "/Volumes/
if options.infilename: infilename = options.infilename
AttributeError: Values instance has no attribute 'infilename'
because the linked images are missing on my harddrive. Saving as 'Optimized SVG' only works after either unchecking 'Embed rasters' or removing the broken image links (Scour in 0.47 doesn't complain).
</off-topic>