After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 142629 - add "Save As" support for SVG files
add "Save As" support for SVG files
Status: RESOLVED WONTFIX
Product: eog
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-16 20:02 UTC by Matthew Gatto
Modified: 2005-11-18 02:30 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Matthew Gatto 2004-05-16 20:02:16 UTC
I'd like to be able to do "File -> Save As" for image/svg+xml files so that when
I click on one that's linked to on a web-page, and it opens in eog, I can save a
copy to my Desktop folder.
Comment 1 Jens Finke 2004-05-17 06:33:08 UTC
The more realistic approach would be to define something like sodipodi as viewer
for svg+xml files, since it is a real vector graphic program. Eog can handle
only rasterimages, which are completely different. The GdkPixbuf library though,
allows us to load a SVG image as an bitmap/raster image that eog can display.
During this process the whole information/structure of the vector image gets
lost, making saving as SVG nearly impossible.

If someone want to take a look into this and see if this can be hacked into
GdkPixbuf anyway, go ahead. The sources are in gkt+/gdk-pixbuf. An extension of
the svg loader module would be required, to allow saving too. If the module
declares a svg saving method, than this will be used by eog with no changes.
Comment 2 Christopher Aillon 2004-08-30 02:11:46 UTC
This seems to work now, though I can't find what fixed it.
Comment 3 Jens Finke 2004-08-30 06:54:25 UTC
Maybe there is an update of the GTK pixbuf svg module now. Haven't checked yet.
Comment 4 Richard Hoelscher 2004-08-30 20:14:51 UTC
Jens:

Isn't this function now handled by eog_image_copy_file() and such in eog-
image.c? The pixbuf loaders are probably better off not being adjusted to 
handle this anyway... even though it would make an upcoming SVG feature in 
other apps I work with much, much easier to implment.

As far as testing goes, using eog 2.7.1, 'eog http://mydomain/bah.svg' , Save 
As, changing to a logal folder, then finalizing the save seems to work fine. 
I've got librsvg's mozilla plugin installed, so I'm not sure if I can test it 
quite to the extent needed.
Comment 5 Jens Finke 2004-08-31 06:11:23 UTC
Ah, ok. Haven't thought of the most simple case :). Indeed, if you now 'Save As'
an otherwise unmodified file under the same file type, the file is simply copied
1:1. This won't work if you modify the image somehow (like rotating). 
Comment 6 Lucas Rocha 2005-11-18 02:30:58 UTC
Removing "Save As" capability is part of 2.14 plans. See bug #320893 to keep
track of this subject. This is a WONTFIX bug.