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: Tue, 16 Dec 2014 20:44:54 +0100 Message-ID: <87mw6n9y6h.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418759128 3572 80.91.229.3 (16 Dec 2014 19:45:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2014 19:45:28 +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 Tue Dec 16 20:45:21 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 1Y0y3d-0005nt-28 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 20:45:21 +0100 Original-Received: from localhost ([::1]:46454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0y3c-00039D-LW for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 14:45:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0y3S-00038s-EH for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 14:45:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0y3K-0000n9-UB for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 14:45:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0y3K-0000ml-RI for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 14:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y0y3K-0004a5-9Y for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 14:45: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: Tue, 16 Dec 2014 19:45: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: notabug Original-Received: via spool by 19373-submit@debbugs.gnu.org id=B19373.141875910117591 (code B ref 19373); Tue, 16 Dec 2014 19:45:02 +0000 Original-Received: (at 19373) by debbugs.gnu.org; 16 Dec 2014 19:45:01 +0000 Original-Received: from localhost ([127.0.0.1]:48156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0y3I-0004Ze-04 for submit@debbugs.gnu.org; Tue, 16 Dec 2014 14:45:00 -0500 Original-Received: from mout.web.de ([212.227.17.12]:52477) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0y3E-0004ZU-RI for 19373@debbugs.gnu.org; Tue, 16 Dec 2014 14:44:57 -0500 Original-Received: from p55m-ud2 ([217.226.85.160]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0LzKEH-1Xo1ah3SyH-014VtA; Tue, 16 Dec 2014 20:44:54 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:IdoxlBJXYLpSa9HG/lImBHS2fc6Vz7+UPCxsGUo/vKc0Un4jZR+ K1njRViNiKYBRmOn+LhR/tOIftujkNjF1RnvRXHO1+MC0Gq+AgpSxXIOx84YJXIcnMD2Bv6 fRG6/w0WMUkIobaESGV5YLFBiVy9jY3G/q/pTQRXK3ZcDqN2dgDSLzk9CQ/ZrlR+ik2PJCk RBuR1CvZulD2O7CcLR0NA== 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:97404 Archived-At: Vasilij Schneidermann 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 > > 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