GNOME Bugzilla – Bug 500209
should let the user select the format to use when saving an image
Last modified: 2008-01-15 01:05:47 UTC
The bug has been described on https://bugs.launchpad.net/ubuntu/+source/eog/+bug/162971 "... Summary: Exporting an image from the Ubuntu default installed PDF viewer (Evince) produces JPEGs of a variety that the default image viewer (Eye of Gnome) cannot load. GIMP and other image related applications have no problem with the output. ... Upon further review, it appears that Evince is not exporting the file to the extension named. In this instance, choosing the "Save as..." in Evince failed to save the image as a JPG and wrote it as a PNG (probably the source image format in the PDF.) Is this in fact perhaps two possible bugs? One for the Evince not exporting as per file extension and one for Eye of Gnome not identifying images based on their headers as opposed to their extensions (as per GIMP and other display apps)? ..."
Right now, only png is supported. We should definitely support, at least, the formats supported by GdkPixbuf. For the gui we can use the fileformatchooser: http://svn.gnome.org/viewvc/libegg/trunk/libegg/fileformatchooser/
the fileselector could maybe set a format filter set on png for now?
(In reply to comment #2) > the fileselector could maybe set a format filter set on png for now? > yes
Created attachment 101801 [details] [review] Patch to be able to choose the format I have created a patch based on eggfileformatchooser. It works for me but has some gui issues which I don't like.
Thank you very much!. Applied to svn trunk.
Hm, to be honest I'm not quite sure why do we use chooser here, is there any sense in that listview embedded into dialog? Does any other GNOME app use it?
(In reply to comment #6) > Hm, to be honest I'm not quite sure why do we use chooser here, is there any > sense in that listview embedded into dialog? Does any other GNOME app use it? > yes, gimp, open office, dia, gnumeric, ... or at least an implementation of the same idea. See also bug #440431.
Applied more lite version.