unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
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: Tue, 16 Dec 2014 20:44:54 +0100	[thread overview]
Message-ID: <87mw6n9y6h.fsf@web.de> (raw)
In-Reply-To: <87iohfcphh.fsf@odonien.i-did-not-set--mail-host-address--so-tickle-me>

Vasilij Schneidermann <hurrus.durrus@gmail.com> writes:

> On 12/16/14 at 07:28pm, Ulf Jasper wrote:
>> rsvg-view (called rsvg-view-3 on debian), which is librsvg's standalone
>> svg-viewer, shows the same behaviour:
>> 
>>  - the referenced image in struct-image-02-b.svg is not shown
>>  - the embedded=inlined jpg image in struct-image-04-t.svg is not shown
>
> 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.

> "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.

>> So this looks like an librsvg issue and probably is not related to
>> Emacs.  Maybe you could ask on the librsvg mailing list about this?
>  
> These two "workarounds" allow me to display both test files as intended,
> therefore I believe it's not librsvg's fault.  For ease of testing I've
> attached all files necessary for testing to this message.  Could other
> people please check whether they can reproduce anything with their
> systems?
>
> Best regards
> Vasilij





  parent reply	other threads:[~2014-12-16 19:44 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 [this message]
2014-12-17 20:00       ` Ulf Jasper
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mw6n9y6h.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).