From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulf Jasper Newsgroups: gmane.emacs.bugs 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 Message-ID: <87k31q3v2h.fsf@web.de> References: <87iohfcphh.fsf@odonien.i-did-not-set--mail-host-address--so-tickle-me> <87lhm7bg9i.fsf@web.de> <20141216190547.GA1859@odonien.labor.koeln.ccc.de> <87mw6n9y6h.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418846484 5902 80.91.229.3 (17 Dec 2014 20:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2014 20:01:24 +0000 (UTC) Cc: 19373@debbugs.gnu.org To: Vasilij Schneidermann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 17 21:01:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y1Kmc-0001zH-A5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Dec 2014 21:01:18 +0100 Original-Received: from localhost ([::1]:51358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1Kmb-0006rj-HQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Dec 2014 15:01:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1KmT-0006rU-2F for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 15:01:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1KmN-0001dd-4l for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 15:01:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1KmN-0001dX-19 for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 15:01:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y1KmM-0004Yn-Hj for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 15:01:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87iohfcphh.fsf@odonien.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Ulf Jasper Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Dec 2014 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19373 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19373-submit@debbugs.gnu.org id=B19373.141884646117514 (code B ref 19373); Wed, 17 Dec 2014 20:01:02 +0000 Original-Received: (at 19373) by debbugs.gnu.org; 17 Dec 2014 20:01:01 +0000 Original-Received: from localhost ([127.0.0.1]:49279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1KmK-0004YP-Sr for submit@debbugs.gnu.org; Wed, 17 Dec 2014 15:01:01 -0500 Original-Received: from mout.web.de ([212.227.17.11]:58865) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1KmI-0004YF-SG for 19373@debbugs.gnu.org; Wed, 17 Dec 2014 15:00:59 -0500 Original-Received: from p55m-ud2 ([217.226.65.198]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0Martm-1YLcmZ0XNq-00KRhz; Wed, 17 Dec 2014 21:00:57 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:cbyBiEHrxSrkGqkY+a+Ss+r3vdLE4+5LLGTi9Pqle1s+LHLmSzE sPGbRvMi1SM60KDXQd2R4lU7VKRDGSJYJJd6i8dmN7qffPSiMdM56K33RcObN2eRZDG3Gsc rtYVbtqi/5RUs15yHhZXzGBMWtL/RZWKlWwaolwljfO6GaIFYh37CVvtFPLLVSECQ46BG/2 T7eDFW3niokkKZ2vikVsA== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97465 Archived-At: Ulf Jasper writes: > Vasilij Schneidermann 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 >> >> 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