From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#26978: 25.2; incomplete display of SVG image Date: Thu, 18 May 2017 08:19:37 +0300 Message-ID: <8337c268t2.fsf@gnu.org> References: <878tlulrlj.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1495084807 24341 195.159.176.226 (18 May 2017 05:20:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 May 2017 05:20:07 +0000 (UTC) Cc: 26978@debbugs.gnu.org To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 18 07:20:03 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBDr1-0006Bt-Oo for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 May 2017 07:20:03 +0200 Original-Received: from localhost ([::1]:51779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBDr7-0001hX-Ak for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 May 2017 01:20:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBDr1-0001hR-8K for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 01:20:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBDr0-0004tv-AA for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 01:20:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dBDr0-0004tp-69 for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 01:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dBDqz-0004GM-WF for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 01:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 May 2017 05:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26978 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26978-submit@debbugs.gnu.org id=B26978.149508479916373 (code B ref 26978); Thu, 18 May 2017 05:20:01 +0000 Original-Received: (at 26978) by debbugs.gnu.org; 18 May 2017 05:19:59 +0000 Original-Received: from localhost ([127.0.0.1]:51724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBDqw-0004G1-SJ for submit@debbugs.gnu.org; Thu, 18 May 2017 01:19:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBDqu-0004Fm-N1 for 26978@debbugs.gnu.org; Thu, 18 May 2017 01:19:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBDqk-0004p8-JH for 26978@debbugs.gnu.org; Thu, 18 May 2017 01:19:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBDqk-0004p4-FT; Thu, 18 May 2017 01:19:46 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1567 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dBDqj-0000ck-MA; Thu, 18 May 2017 01:19:46 -0400 In-reply-to: <878tlulrlj.fsf@gmail.com> (ynyaaa@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:132594 Archived-At: > From: ynyaaa@gmail.com > Date: Thu, 18 May 2017 13:24:40 +0900 > > (1)Texts in SVG are not displayed. > This sample should show "ABC" in a red square, > but three rectangles are displayed instead of "ABC". > > > > ABC > I cannot reproduce this: I do see "ABC" in a red square. > (2)External image files may not be displayed. > Copy emacs-25.2/share/icons/hicolor/16x16/apps/emacs.png > into the same directory of the sample SVG, > I can view the scaled emacs icon over a blue square with image-mode. > > If emacs.png and the SVG are saved in the root directory, > viewing the SVG shows only a blue square. > > If emacs.png is not in the same directory of the SVG nor its descendant > and the path of xlink:href="..." is rewritten, > viewing the SVG shows only a blue square. Is this related to the first or the second SVG in your report? > If the current buffer is not related to any file > (i.e. buffer-file-name is nil), > evaluating (insert-image (create-image data-string 'svg t)) > shows only a blue square. > > xmlns:xlink="http://www.w3.org/1999/xlink"> > > > Here I see only a blue square no matter whether this SVG is from a file or from a buffer string, and no matter what is the directory. Once again, a full detailed recipe could help establish whether there's a difference between our systems. Firefox does show the PNG image on the background of the square. Can someone please try the above SVG in Emacs on a Unix or GNU system and tell what is displayed? This could be a problem with that particular version of librsvg, which would make it not an Emacs problem. > I obtained librsvg-2.40.1-2-w32-bin.zip > from http://sourceforge.net/projects/ezwinports/files/. What about the PNG library? Is it possible you are using one that is different from what came with librsvg-2.40.1-2-w32-bin.zip? librsvg uses libpng internally.