GNOME Bugzilla – Bug 394803
Fails to load .svgz
Last modified: 2007-09-05 17:23:38 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
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.
Created attachment 80289 [details] [review] patch against stable
Created attachment 80290 [details] [review] patch against head
Matthias Clasen wrote them btw.
$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.
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)
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)
Actually I meant bug 449409 in comment #7. Sorry.
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.
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).
Ok, bug #473731 is fixed. This one is fixed then. Thanks for the patch!