From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 13 14:52:31 2014 Received: (at submit) by debbugs.gnu.org; 13 Dec 2014 19:52:31 +0000 Received: from localhost ([127.0.0.1]:45049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xzsju-0003CM-B2 for submit@debbugs.gnu.org; Sat, 13 Dec 2014 14:52:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58928) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XzsUD-0002nP-ES for submit@debbugs.gnu.org; Sat, 13 Dec 2014 14:36:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzsU6-0005qP-Fz for submit@debbugs.gnu.org; Sat, 13 Dec 2014 14:36:11 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:32901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzsU6-0005qL-CX for submit@debbugs.gnu.org; Sat, 13 Dec 2014 14:36:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzsU5-0000VU-0f for bug-gnu-emacs@gnu.org; Sat, 13 Dec 2014 14:36:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzsU3-0005q9-Is for bug-gnu-emacs@gnu.org; Sat, 13 Dec 2014 14:36:08 -0500 Received: from mail-wi0-x244.google.com ([2a00:1450:400c:c05::244]:34010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzsU3-0005q3-Bo for bug-gnu-emacs@gnu.org; Sat, 13 Dec 2014 14:36:07 -0500 Received: by mail-wi0-f196.google.com with SMTP id ex7so1758359wid.11 for ; Sat, 13 Dec 2014 11:36:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=zL9ckRu1iFbPCfyWzLW8wQ7BtW9yU26fxllZx8Ky/m8=; b=eMXPvUCAUIb/p88Arxvwv9Cg27gVnpDYac8IWKvECDYlmQPlLdC6dQJFUMDx4CGujc HJoy4N6ZN/f9kcbkHNbbKaVIqZw8KdRFxzCMJGLcTUuSgtMMskUjkYGLqogOt0R4iSFw NPNWpvqTtm1zK8k2pSjmGCmNndnFTYn5SccK9tgxtdCF2DJ1znecfUAZ2nwlq5tjEJu7 3jnMwweQiOlUOOxnrhv3/SZ4X1wkBX75zi2yEO+ISqiVTqrBzyGOzI9xZ+s9VJHPiF68 f65SAMySS+oY+RH3PB98LbEbVt85B2rgXf/PZPwDmd0SLkLAlYIML5u8jbkdDWW9ZquC dBbw== X-Received: by 10.194.23.202 with SMTP id o10mr38878561wjf.73.1418499366233; Sat, 13 Dec 2014 11:36:06 -0800 (PST) Received: from odonien ([2001:470:7860:11e0:21e:65ff:fee6:94b0]) by mx.google.com with ESMTPSA id pu3sm6595253wjc.14.2014.12.13.11.36.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Dec 2014 11:36:05 -0800 (PST) From: Vasilij Schneidermann X-Google-Original-From: Vasilij Schneidermann To: bug-gnu-emacs@gnu.org Subject: 24.4; SVG images rendered via librsvg fail at displaying non-inline bitmap images Date: Sat, 13 Dec 2014 20:35:22 +0100 Message-ID: <87iohfcphh.fsf@odonien.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 13 Dec 2014 14:52:28 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I've recently tested Emacs' support for displaying SVG images that contain bitmap images. The test files used were and . The imagemagick backend displays both pictures flawlessly, but renders transparency as white background which makes it unsuitable for my purposes. The librsvg backend appears to render transparency correctly, however in the first example with inline bitmaps the first image isn't displayed at all (which can be easily fixed by replacing "jpg" with "jpeg" in its sources); in the second example the non-inline bitmap isn't displayed either. I've tried tracking down the reason for this behavior and the only pointer I could find was that librsvg is using the cairo library to embed the bitmap image. Is there any obvious fix I can apply to remedy this issue? In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.3) of 2014-10-21 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.11602000 System Description: Arch Linux Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs/site-lisp/SuperCollider/tree-widget hides /usr/share/emacs/24.4/lisp/tree-widget Features: (shadow sort gnus-util mail-extr emacsbug message idna format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 73812 6500) (symbols 48 17579 0) (miscs 40 77 163) (strings 32 9145 4185) (string-bytes 1 252188) (vectors 16 8986) (vector-slots 8 384469 17487) (floats 8 63 185) (intervals 56 216 4) (buffers 960 12) (heap 1024 45321 956)) From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 16 13:29:08 2014 Received: (at 19373) by debbugs.gnu.org; 16 Dec 2014 18:29:08 +0000 Received: from localhost ([127.0.0.1]:48096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0wrr-0008He-Pc for submit@debbugs.gnu.org; Tue, 16 Dec 2014 13:29:08 -0500 Received: from mout.web.de ([212.227.17.11]:64100) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0wrp-0008HW-Gl for 19373@debbugs.gnu.org; Tue, 16 Dec 2014 13:29:06 -0500 Received: from p55m-ud2 ([217.226.85.160]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MORqb-1XxuSv2Vdt-005mXY; Tue, 16 Dec 2014 19:29:00 +0100 From: Ulf Jasper To: Vasilij Schneidermann Subject: Re: bug#19373: 24.4; SVG images rendered via librsvg fail at displaying non-inline bitmap images References: <87iohfcphh.fsf@odonien.i-did-not-set--mail-host-address--so-tickle-me> Date: Tue, 16 Dec 2014 19:28:57 +0100 In-Reply-To: <87iohfcphh.fsf@odonien.i-did-not-set--mail-host-address--so-tickle-me> (Vasilij Schneidermann's message of "Sat, 13 Dec 2014 20:35:22 +0100") Message-ID: <87lhm7bg9i.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:/+cwlcZdd2/fzEOPZkE4CjPOqT4hz7jWdOl15p6aRYwxJdLrBQu n1K0FzuLaHUTvh8R1qL8ixNqw+1psMP3zJ3PJpP5MI/bv6dnjZ2ybVXMxln6DPkT9zIYV55 zt8G57UG1C72u2kkTxP7OycVG5FhWKYh7yKMPd0g0KvSvQrewyclWspWoKzZEWJjZXbZjv/ 93wh1wDSrOdlCvGidltsQ== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 19373 Cc: 19373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Vasilij Schneidermann writes: > I've recently tested Emacs' support for displaying SVG images that > contain bitmap images. The test files used were > > and > . > The imagemagick backend displays both pictures flawlessly, but renders > transparency as white background which makes it unsuitable for my > purposes. The librsvg backend appears to render transparency correctly, > however in the first example with inline bitmaps the first image isn't > displayed at all (which can be easily fixed by replacing "jpg" with > "jpeg" in its sources); in the second example the non-inline bitmap > isn't displayed either. I've tried tracking down the reason for this > behavior and the only pointer I could find was that librsvg is using > the cairo library to embed the bitmap image. Is there any obvious fix I > can apply to remedy this issue? 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 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? Best, Ulf From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 16 14:08:55 2014 Received: (at control) by debbugs.gnu.org; 16 Dec 2014 19:08:55 +0000 Received: from localhost ([127.0.0.1]:48113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0xUN-0000rK-3j for submit@debbugs.gnu.org; Tue, 16 Dec 2014 14:08:55 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:38913) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0xUL-0000rD-Li for control@debbugs.gnu.org; Tue, 16 Dec 2014 14:08:53 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Y0xUL-00086j-8l for control@debbugs.gnu.org; Tue, 16 Dec 2014 14:08:53 -0500 Date: Tue, 16 Dec 2014 14:08:53 -0500 Message-Id: Subject: control message for bug 19373 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) tag 19373 notabug From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 16 14:45:00 2014 Received: (at 19373) by debbugs.gnu.org; 16 Dec 2014 19:45:01 +0000 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 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 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 From: Ulf Jasper To: Vasilij Schneidermann Subject: Re: bug#19373: 24.4; SVG images rendered via librsvg fail at displaying non-inline bitmap images 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> Date: Tue, 16 Dec 2014 20:44:54 +0100 Message-ID: <87mw6n9y6h.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 19373 Cc: 19373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 16 15:16:08 2014 Received: (at control) by debbugs.gnu.org; 16 Dec 2014 20:16:08 +0000 Received: from localhost ([127.0.0.1]:48173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0yXQ-0005MF-4s for submit@debbugs.gnu.org; Tue, 16 Dec 2014 15:16:08 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:44473) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0yXN-0005M7-PI for control@debbugs.gnu.org; Tue, 16 Dec 2014 15:16:06 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Y0yXN-0003aL-8v for control@debbugs.gnu.org; Tue, 16 Dec 2014 15:16:05 -0500 Date: Tue, 16 Dec 2014 15:16:05 -0500 Message-Id: Subject: control message for bug 19373 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) tag 19373 = From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 17 15:01:01 2014 Received: (at 19373) by debbugs.gnu.org; 17 Dec 2014 20:01:01 +0000 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 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 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 From: Ulf Jasper To: Vasilij Schneidermann Subject: Re: bug#19373: 24.4; SVG images rendered via librsvg fail at displaying non-inline bitmap images 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> Date: Wed, 17 Dec 2014 21:00:54 +0100 Message-ID: <87k31q3v2h.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:cbyBiEHrxSrkGqkY+a+Ss+r3vdLE4+5LLGTi9Pqle1s+LHLmSzE sPGbRvMi1SM60KDXQd2R4lU7VKRDGSJYJJd6i8dmN7qffPSiMdM56K33RcObN2eRZDG3Gsc rtYVbtqi/5RUs15yHhZXzGBMWtL/RZWKlWwaolwljfO6GaIFYh37CVvtFPLLVSECQ46BG/2 T7eDFW3niokkKZ2vikVsA== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 19373 Cc: 19373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 17 22:50:41 2014 Received: (at 19373) by debbugs.gnu.org; 18 Dec 2014 03:50:41 +0000 Received: from localhost ([127.0.0.1]:49439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1S6r-00085q-2J for submit@debbugs.gnu.org; Wed, 17 Dec 2014 22:50:41 -0500 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:62120) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1S6m-00085f-RN for 19373@debbugs.gnu.org; Wed, 17 Dec 2014 22:50:39 -0500 Received: from fermat1.math.s.chiba-u.ac.jp (fermat [192.168.32.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id BF7AFC0561; Thu, 18 Dec 2014 12:50:33 +0900 (JST) Date: Thu, 18 Dec 2014 12:50:33 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Ulf Jasper Subject: Re: bug#19373: 24.4; SVG images rendered via librsvg fail at displaying non-inline bitmap images In-Reply-To: <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> <87k31q3v2h.fsf@web.de> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 19373 Cc: Vasilij Schneidermann , 19373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) >>>>> On Wed, 17 Dec 2014 21:00:54 +0100, Ulf Jasper said: > 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. I suspect it is not appropriate to refer to buffer-local variables of the current buffer inside image loading functions: diff --git a/src/image.c b/src/image.c index 1a2c0e2..0bebd45 100644 [snip] @@ -8818,7 +8822,9 @@ svg_load (struct frame *f, struct image *img) image_error ("Invalid image data `%s'", data, Qnil); return 0; } - success_p = svg_load_image (f, img, SDATA (data), SBYTES (data)); + original_filename = BVAR (current_buffer, filename); + success_p = svg_load_image (f, img, SDATA (data), SBYTES (data), + SDATA(original_filename)); } return success_p; Maybe SVG image descriptors should accept the property `:base-uri' or something? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 18 08:41:06 2014 Received: (at 19373) by debbugs.gnu.org; 18 Dec 2014 13:41:06 +0000 Received: from localhost ([127.0.0.1]:49542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1bKD-0007Mo-Ly for submit@debbugs.gnu.org; Thu, 18 Dec 2014 08:41:06 -0500 Received: from mout.web.de ([212.227.15.14]:54353) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1bK5-0007MB-Jg for 19373@debbugs.gnu.org; Thu, 18 Dec 2014 08:40:58 -0500 Received: from p55m-ud2 ([217.226.83.244]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0MPaxV-1XxSRy3YAr-004iVE; Thu, 18 Dec 2014 14:40:47 +0100 From: Ulf Jasper To: YAMAMOTO Mitsuharu Subject: Re: bug#19373: 24.4; SVG images rendered via librsvg fail at displaying non-inline bitmap images 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> <87k31q3v2h.fsf@web.de> Date: Thu, 18 Dec 2014 14:40:44 +0100 In-Reply-To: (YAMAMOTO Mitsuharu's message of "Thu, 18 Dec 2014 12:50:33 +0900") Message-ID: <871tnx2i03.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:uOT9wmgSLXC7JKeFreqAvsk50Xr2MktaaIu9kNtrD/QRrsYX008 v2D2V93jvA0cQ3XD88R6MnAQVszz07V44NGSrmqrtMxg6asSJhu78ZBb4c8NS943LzY0gH3 3uCBdR9lAUq9sRRaGY5zpOyL9w7u6rQX9OUhi47GbPzugcs0oFFYENLZ1eyq6tW7o0+S8bx C2PdG/Xpl5FqXK7uM8sJg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 19373 Cc: Vasilij Schneidermann , 19373@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) YAMAMOTO Mitsuharu writes: >>>>>> On Wed, 17 Dec 2014 21:00:54 +0100, Ulf Jasper said: > >> 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. > > I suspect it is not appropriate to refer to buffer-local variables of > the current buffer inside image loading functions: [...] > Maybe SVG image descriptors should accept the property `:base-uri' or > something? Agreed. That solution would be a much cleaner. I was thinking about that but chose the simpler solution instead. As an explanation=excuse: This was one of my first trips to the c-side of Emacs-land. I still feel unfamiliar with this area. I shall add a property to svg image specs for holding the filename. Best, ulf From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 18 08:44:18 2014 Received: (at 19373-done) by debbugs.gnu.org; 18 Dec 2014 13:44:18 +0000 Received: from localhost ([127.0.0.1]:49546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1bNJ-0007RZ-OK for submit@debbugs.gnu.org; Thu, 18 Dec 2014 08:44:17 -0500 Received: from mout.web.de ([212.227.15.3]:54087) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1bNH-0007RR-R4 for 19373-done@debbugs.gnu.org; Thu, 18 Dec 2014 08:44:16 -0500 Received: from p55m-ud2 ([217.226.83.244]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0LbImQ-1Xcjw62JA2-00kx4m; Thu, 18 Dec 2014 14:44:12 +0100 From: Ulf Jasper To: Vasilij Schneidermann , <19373-done@debbugs.gnu.org> Subject: Re: bug#19373: 24.4; SVG images rendered via librsvg fail at displaying non-inline bitmap images 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> <87k31q3v2h.fsf@web.de> <20141218092705.GA1133@odonien.bevuta.com> Date: Thu, 18 Dec 2014 14:44:12 +0100 Message-ID: <87mw6l139v.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:LCUCg7I9yQO9+PRQso+obvvF+PM5UT+M2tPvSOi8A/JZ/Mq7a4I pgO52luQ24BhqeoNk9AafZ7lcDr/a1TQQn3H2jE0RuvhgtTBaz9Oys/y2iW5Rag3MDTC3tN YsULyuf0GpJA+Y/PMGccP/QrZ8Hwtno2bay0fCelT6HVH6sC46xfmHj+2Xf+TaMvBnZ90eQ M+4f2wRXWlMzLfHbCVwOg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 19373-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Vasilij Schneidermann writes: > Thanks, I've rebuilt Emacs from HEAD and confirmed that the fix does > indeed work for me. I'd be happier if it were fixed upstream, but > consider it rather unlikely to happen. Thanks for confirming. Closing. ulf From unknown Sun Jun 22 11:41:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 16 Jan 2015 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator