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 394803 - Fails to load .svgz
Fails to load .svgz
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on: 473731
Blocks:
 
 
Reported: 2007-01-09 21:07 UTC by Behdad Esfahbod
Modified: 2007-09-05 17:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch against stable (2.43 KB, patch)
2007-01-15 04:34 UTC, Behdad Esfahbod
none Details | Review
patch against head (2.16 KB, patch)
2007-01-15 04:34 UTC, Behdad Esfahbod
none Details | Review
updated patch (2.25 KB, patch)
2007-08-20 11:13 UTC, Felix Riemann
committed Details | Review

Description Behdad Esfahbod 2007-01-09 21:07:15 UTC
There is a tested patch at the following Red Hat bug, written by Matthias Clasen, to let eog open .svgz files.  What it does essentially is to get the MIME type from gnome-vfs and pass it to gdk-pixbuf loader:

  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219782
Comment 1 Claudio Saavedra 2007-01-14 14:02:45 UTC
Behdad, 

Thanks for the pointer. Unfortunately, I'm unable to read the report, even when I created an account in RedHat bugzilla (I'm still not authorized). If you could attach the patch here, it would be great.
Comment 2 Behdad Esfahbod 2007-01-15 04:34:03 UTC
Created attachment 80289 [details] [review]
patch against stable
Comment 3 Behdad Esfahbod 2007-01-15 04:34:50 UTC
Created attachment 80290 [details] [review]
patch against head
Comment 4 Behdad Esfahbod 2007-01-15 04:35:22 UTC
Matthias Clasen wrote them btw.
Comment 5 sangu 2007-02-25 01:40:26 UTC
$rpm -q --changelog eog-2.17.91-1.fc7
[...]
* Wed Jan 10 2007 Behdad Esfahbod <besfahbo@redhat.com> - 2.17.3-2
- Handle svgz images
- Resolves: #219782
[...]
Please see : https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=222282
eog can't load all svg files in fedora rawhide.
Comment 6 Felix Riemann 2007-07-01 12:41:46 UTC
I just had a look at it and noticed that librsvg needs to add the "image/svg+xml-compressed" type to its supported types as of shared-mime-info-0.20. (bug 452823)
Comment 7 Felix Riemann 2007-07-01 12:43:53 UTC
Sangu,

please note that our current development versions (2.19.x) have a problem (they deadlock) with loading SVGs from the command line. (bug 447063)
Comment 8 Felix Riemann 2007-07-01 12:53:18 UTC
Actually I meant bug 449409 in comment #7. Sorry.
Comment 9 Felix Riemann 2007-08-20 11:13:05 UTC
Created attachment 93974 [details] [review]
updated patch

This is an updated version of the patch which avoids some warnings with the new tooltips.
I am not committing it yet, as I currently cannot test SVGs due to the aforementioned bug.
Comment 10 Lucas Rocha 2007-09-04 22:44:43 UTC
Ok, I refactored latest patch and committed. The problem now is that librsvg's pixbuf loader is crashing when trying to load compressed SVG images (see bug #473731). Adding dependency.

2007-09-05  Lucas Rocha  <lucasr@gnome.org>

        * src/eog-image.c (+eog_image_get_file_info,
        eog_image_real_load): force mime type on pixbuf loader in order to
        to recognize less usual image format like compressed SVG images.
        Fixes bug #394803 (Matthias Clasen, Felix Riemann).
Comment 11 Lucas Rocha 2007-09-05 17:23:38 UTC
Ok, bug #473731 is fixed. This one is fixed then. Thanks for the patch!