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 07:55:43 +0300 Message-ID: <834lwi69ww.fsf@gnu.org> References: <878tlulrlj.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1495083431 15328 195.159.176.226 (18 May 2017 04:57:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 May 2017 04:57:11 +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 06:57:06 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 1dBDUo-0003rD-Ee for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 May 2017 06:57:06 +0200 Original-Received: from localhost ([::1]:51738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBDUt-00066d-Om for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 May 2017 00:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBDUn-00060z-FW for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 00:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBDUk-0007KW-Gg for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 00:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49034) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dBDUk-0007KQ-CT for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 00:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dBDUk-0003bq-6G for bug-gnu-emacs@gnu.org; Thu, 18 May 2017 00:57: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 04:57:02 +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.149508336613798 (code B ref 26978); Thu, 18 May 2017 04:57:02 +0000 Original-Received: (at 26978) by debbugs.gnu.org; 18 May 2017 04:56:06 +0000 Original-Received: from localhost ([127.0.0.1]:51711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBDTp-0003aU-RI for submit@debbugs.gnu.org; Thu, 18 May 2017 00:56:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBDTo-0003Zz-6d for 26978@debbugs.gnu.org; Thu, 18 May 2017 00:56:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBDTf-00075c-Da for 26978@debbugs.gnu.org; Thu, 18 May 2017 00:55:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBDTe-00075V-Vj; Thu, 18 May 2017 00:55:55 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4952 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dBDTd-0003ny-6O; Thu, 18 May 2017 00:55:53 -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:132593 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. Can someone please try the above SVG on a Unix or GNU system and see what is shown? This could also 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.