"Rubbish" code in svg. Images, fonts

Bug #1397035 reported by Joan CiberSheep
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Opinion
Undecided
Unassigned

Bug Description

Hello.

I saw that when saving a svg in inkscape format or in simplified svg there is a presence of obsolete or "rubbish" code in it.
Examples:
a)
 - Insert an image and create a new layer for trace it by hand.
 - Finish design and delete the layer containing the image
 - open svg in Gedit and find <image> empty image tags.

b)
 - type a text
 - convert object to path
 - save svg and open in gedit
there is still references to the font style and text properties.

Tags: svg
jazzynico (jazzynico)
tags: added: svg
Revision history for this message
jazzynico (jazzynico) wrote :

Tested on Windows XP, Inkscape 0.48.5 and trunk rev. 13836.

a) Not reproduced. The layer and all its content are correctly removed from the file.
b) I'm not sure if it's a bug or a feature. Keeping text and font data is very useful if someone needs to modify the converted text. It is then possible to use the same original font and text attributes to be sure the new path is consistent with the old one.

Could you please give details on your OS and Inkscape version, and attach an example SVG file showing the image element?

Changed in inkscape:
status: New → Incomplete
Revision history for this message
Joan CiberSheep (cibersheep) wrote :

Sorry it took me so long to answer.
a) I have tryed to reproduce the "bug" and I was not able.
I found a file that gave me problems. I see the images are <g display="none">
I can't recall my workflow but I guess:
 - I was changing the opacity of the images to 0, then deleting the layer *I thought* those images were in.
 - Optimized svg through external service and kept the empty image tags

So -> not a bug (other than me :( )

Revision history for this message
Joan CiberSheep (cibersheep) wrote :

b) If including the font properties is a function (and I think you're right when saying it helps to add a text similar to the converted to path), then:

 - It wouldn't be helpful to add the font name?
 - It wouldn't be nice to get rid of this info in a "optimized" svg?

Changed in inkscape:
status: Incomplete → Opinion
Revision history for this message
Joan CiberSheep (cibersheep) wrote :

(I changed it to opinion as we can consider these not bugs)

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

The “"rubbish" code in svg" issue is already tracked in
- Bug #168720 “Text styles remain in type objects converted to paths.”
  https://bugs.launchpad.net/inkscape/+bug/168720

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

On 2015-02-02 11:49 (+0100), Joan CiberSheep wrote:
> (I changed it to opinion as we can consider these not bugs)

Proposing to link as duplicate to bug #168720 instead (if that's the one remaining issue of this report).

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.