From: Ulf Jasper <ulf.jasper@web.de>
To: Vasilij Schneidermann <hurrus.durrus@gmail.com>
Cc: 19373@debbugs.gnu.org
Subject: bug#19373: 24.4; SVG images rendered via librsvg fail at displaying non-inline bitmap images
Date: Wed, 17 Dec 2014 21:00:54 +0100 [thread overview]
Message-ID: <87k31q3v2h.fsf@web.de> (raw)
In-Reply-To: <87iohfcphh.fsf@odonien.i-did-not-set--mail-host-address--so-tickle-me>
Ulf Jasper <ulf.jasper@web.de> writes:
> Vasilij Schneidermann <hurrus.durrus@gmail.com> writes:
>> FWIW, I have `rsvg-view-3` on my Arch Linux system, too. If I go ahead
>> and download the referenced files to view them with it as they come, I
>> get the same symptoms as you have described. However, with minor
>> "workarounds" I can get them to display.
>>
>> For "struct-image-04-t.svg" the following `sed` invocation is sufficient:
>>
>> sed -i 's/data:image\/jpg/data:image\/jpeg/' struct-image-04-t.svg
>
> I can confirm that the modified svg-file displays correctly, both, with
> rsvg-view-3 as well as with Emacs (master): The embedded=inlined
> jpg=jpeg and the png image are both shown. So rsvg-view-3 and Emacs
> show the same behaviour for original and modified file.
This is rsvg bug 739682 "doesn't recognize mime type image/jpg" [1] and
not an Emacs problem.
>> "struct-image-02-b.svg" requires a bit more work because it references
>> an image on the w3.org servers. Assuming you download the referenced
>> image at
>> <http://dev.w3.org/SVG/profiles/1.1F2/test/images/struct-image-02.jpg>
>> and save it as "struct-image-02.jpg" in the same directory as
>> "struct-image-02-b.svg", you can edit the path to it with the following
>> `sed` call:
>>
>> sed -i 's/..\/images\/struct-image-02.jpg/struct-image-02.jpg/' struct-image-02-b.svg
>
> Here I see a difference between rsvg-view-3 and Emacs. rsvg-view-3
> displays the modified file correctly, i.e. it shows the referenced file,
> while Emacs still does not show the referenced file.
This is related to rsvg bug 596114 "image refs are relative to curdir,
not .svg file" [2]. I just pushed a fix to master (c17c864) which
should fix this.
BTW: There is also rsvg bug 646618 "Remote images not supported" [3]
which explains why references to remote images are not displayed.
Best,
ulf
[1] https://bugzilla.gnome.org/show_bug.cgi?id=739682
[2] https://bugzilla.gnome.org/show_bug.cgi?id=596114
[3] https://bugzilla.gnome.org/show_bug.cgi?id=646618
next prev parent reply other threads:[~2014-12-17 20:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-13 19:35 bug#19373: 24.4; SVG images rendered via librsvg fail at displaying non-inline bitmap images Vasilij Schneidermann
2014-12-16 18:28 ` Ulf Jasper
[not found] ` <20141216190547.GA1859@odonien.labor.koeln.ccc.de>
2014-12-16 19:44 ` Ulf Jasper
2014-12-17 20:00 ` Ulf Jasper [this message]
2014-12-18 3:50 ` YAMAMOTO Mitsuharu
2014-12-18 13:40 ` Ulf Jasper
[not found] ` <20141218092705.GA1133@odonien.bevuta.com>
2014-12-18 13:44 ` Ulf Jasper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k31q3v2h.fsf@web.de \
--to=ulf.jasper@web.de \
--cc=19373@debbugs.gnu.org \
--cc=hurrus.durrus@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.