all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: ynyaaa@gmail.com
Cc: 26978@debbugs.gnu.org
Subject: bug#26978: 25.2; incomplete display of SVG image
Date: Thu, 18 May 2017 07:55:43 +0300	[thread overview]
Message-ID: <834lwi69ww.fsf@gnu.org> (raw)
In-Reply-To: <878tlulrlj.fsf@gmail.com> (ynyaaa@gmail.com)

> 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".
> 
> <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
>   <rect fill="red" width="100" height="100"/>
>   <text x="10" y="60" font-size="40" fill="white">ABC</text>
> </svg>

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.
> 
> <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"
>      xmlns:xlink="http://www.w3.org/1999/xlink">
>   <rect fill="blue" width="100" height="100"/>
>   <image xlink:href="emacs.png" width="100" height="100"/>
> </svg>

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.





  reply	other threads:[~2017-05-18  4:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18  4:24 bug#26978: 25.2; incomplete display of SVG image ynyaaa
2017-05-18  4:55 ` Eli Zaretskii [this message]
2017-05-18  5:19 ` Eli Zaretskii
2017-05-18 10:02   ` ynyaaa
2017-05-18 15:34     ` Eli Zaretskii
2019-09-26 15:37     ` Lars Ingebrigtsen
2019-09-26 15:50       ` Lars Ingebrigtsen
2019-09-26 15:53         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=834lwi69ww.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=26978@debbugs.gnu.org \
    --cc=ynyaaa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.