unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Takesi Ayanokoji <ayanokoji.takesi@gmail.com>
To: 70199@debbugs.gnu.org
Subject: bug#70199: 30.0.50; Emacs Android ports serms not support SVG images, even with ImageMagick.
Date: Sat, 6 Apr 2024 23:20:21 +0900	[thread overview]
Message-ID: <CAN7Wbia7x3u0MNSU4AFGRadTpBqa1PT+rq9OLCTsnoKra5nA=w@mail.gmail.com> (raw)
In-Reply-To: <CAN7WbiahtBbCLcgG6oLTR+PHkO95xbV1oEu6GW=vjABFOSH1+g@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1219 bytes --]

Hello, again.

I thought this and little Googling about this image format .

There will be the way to add additional condition that recognize types of
system(that is, 'system-type).

But I can't find the point of putting effort into displaying SVG images
when image type 'svg' isn't available, and when we can use other image
formats instead.

(for me, these splash.* images are almost looks same).

I attach the patch.
How about this?

Thanks,

2024年4月5日(金) 午前0:46 Takesi Ayanokoji <ayanokoji.takesi@gmail.com>:

> Hello,
>
> When I use Emacs ports for Android with ImageMagick,
> (fancy-startup-screen) doesn't show Emacs logo image, while logo displayed
> correctly without ImageMagick.
>
> I guess this is the result of commit
> a66744021faeb2ce105b1001a380c4a46384c5f4 (because  afetr revert this
> commit, startup screen shows logo correctly).
>
>
> https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=a66744021faeb2ce105b1001a380c4a46384c5f4
>
> But I have no idea how to fix this appropriately, because I don't have
> enough knowledge SVG, ImageMagick, and this commit's background.
>
> Please someone fix the problem in an appropriate way.
>
> Regards,
>

[-- Attachment #1.2: Type: text/html, Size: 2299 bytes --]

[-- Attachment #2: 0001-Tweak-startup-image-choice-logic.patch --]
[-- Type: application/octet-stream, Size: 1316 bytes --]

From a66744021faeb2ce105b1001a380c4a46384c5f4 Mon Sep 17 00:00:00 2001
From: Chong Yidong <cyd@gnu.org>
Date: Mon, 11 Jun 2012 23:55:32 +0800
Subject: [PATCH] Tweak startup image choice logic.

* startup.el (fancy-splash-head): Use splash.svg even if librsvg
is uninstalled, if imagemagick is installed.
---
 lisp/ChangeLog  | 5 +++++
 lisp/startup.el | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a251c45f323..39f5f8435d0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-11  Chong Yidong  <cyd@gnu.org>
+
+	* startup.el (fancy-splash-head): Use splash.svg even if librsvg
+	is uninstalled, if imagemagick is installed.
+
 2012-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* emacs-lisp/cl-lib.el: Use lexical-binding.
diff --git a/lisp/startup.el b/lisp/startup.el
index 59d25626372..e71fe323066 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1491,7 +1491,8 @@ a face or button specification."
 				   (if (image-type-available-p 'xpm)
 				       "splash.xpm"
 				     "splash.pbm"))
-				  ((image-type-available-p 'svg)
+				  ((or (image-type-available-p 'svg)
+				       (image-type-available-p 'imagemagick))
 				   "splash.svg")
 				  ((image-type-available-p 'png)
 				   "splash.png")
-- 
2.43.0


      reply	other threads:[~2024-04-06 14:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-04 15:45 bug#70199: 30.0.50; Emacs Android ports serms not support SVG images, even with ImageMagick Takesi Ayanokoji
2024-04-06 14:20 ` Takesi Ayanokoji [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAN7Wbia7x3u0MNSU4AFGRadTpBqa1PT+rq9OLCTsnoKra5nA=w@mail.gmail.com' \
    --to=ayanokoji.takesi@gmail.com \
    --cc=70199@debbugs.gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).