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 500209 - should let the user select the format to use when saving an image
should let the user select the format to use when saving an image
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
2.20.x
Other Linux
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks: 508313
 
 
Reported: 2007-11-28 14:28 UTC by Sebastien Bacher
Modified: 2008-01-15 01:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Patch to be able to choose the format (48.77 KB, patch)
2007-12-29 18:21 UTC, Carl-Anton Ingmarsson
committed Details | Review

Description Sebastien Bacher 2007-11-28 14:28:59 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)?
..."
Comment 1 Carlos Garcia Campos 2007-11-28 14:50:51 UTC
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/
Comment 2 Sebastien Bacher 2007-11-28 15:26:34 UTC
the fileselector could maybe set a format filter set on png for now?
Comment 3 Carlos Garcia Campos 2007-11-28 15:31:34 UTC
(In reply to comment #2)
> the fileselector could maybe set a format filter set on png for now?
> 

yes
Comment 4 Carl-Anton Ingmarsson 2007-12-29 18:21:43 UTC
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.
Comment 5 Carlos Garcia Campos 2007-12-30 16:31:45 UTC
Thank you very much!. Applied to svn trunk. 
Comment 6 Nickolay V. Shmyrev 2008-01-09 22:54:32 UTC
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?
Comment 7 Carlos Garcia Campos 2008-01-13 11:37:22 UTC
(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. 
Comment 8 Nickolay V. Shmyrev 2008-01-15 01:05:13 UTC
Applied more lite version.