all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#63531: [PATCH] View DICOM and Sixel images using image-convert
@ 2023-05-15 23:30 Antero Mejr via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-05-16 16:23 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Antero Mejr via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-05-15 23:30 UTC (permalink / raw)
  To: 63531

[-- Attachment #1: Type: text/plain, Size: 147 bytes --]

These patches add .dcm and .six to auto-mode-alist, so they can be
viewed with image-convert. The Six patch also adds SIX as an ImageMagick
type.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Allow-viewing-.six-images-via-image-convert.patch --]
[-- Type: text/x-patch, Size: 1532 bytes --]

From d03709e75696c7d081012eade721d80f5b725b42 Mon Sep 17 00:00:00 2001
From: Antero Mejr <antero@mailbox.org>
Date: Mon, 15 May 2023 21:21:12 +0000
Subject: [PATCH 1/2] Allow viewing .six images via image-convert.

* lisp/files.el (auto-mode-alist): Support the Sixel .six image
format.
* lisp/image.el (imagemagick-enabled-types): Add SIX.
---
 lisp/files.el | 1 +
 lisp/image.el | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/files.el b/lisp/files.el
index 148f47cbc97..ba338e01c6b 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3082,6 +3082,7 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|CBR\\|7Z\\|SQUASHFS\\)\\'" .
      ("\\.pict\\'" . image-mode)
      ("\\.rgb\\'" . image-mode)
      ("\\.rgba\\'" . image-mode)
+     ("\\.six\\'" . image-mode)
      ("\\.tga\\'" . image-mode)
      ("\\.wbmp\\'" . image-mode)
      ("\\.webp\\'" . image-mode)
diff --git a/lisp/image.el b/lisp/image.el
index 08190cf86bc..72811b2b197 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -1127,7 +1127,7 @@ has no effect."
     KDC MIFF MNG MRW MSL MSVG MTV NEF ORF OTB PBM PCD PCDS PCL
     PCT PCX PDB PEF PGM PICT PIX PJPEG PNG PNG24 PNG32 PNG8 PNM
     PPM PSD PTIF PWP RAF RAS RBG RGB RGBA RGBO RLA RLE SCR SCT
-    SFW SGI SR2 SRF SUN SVG SVGZ TGA TIFF TIFF64 TILE TIM TTF
+    SFW SGI SIX SR2 SRF SUN SVG SVGZ TGA TIFF TIFF64 TILE TIM TTF
     UYVY VDA VICAR VID VIFF VST WBMP WPG X3F XBM XC XCF XPM XV
     XWD YCbCr YCbCrA YUV)
   "List of ImageMagick types to treat as images.
-- 
2.39.2


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-Allow-viewing-.dcm-images-via-image-convert.patch --]
[-- Type: text/x-patch, Size: 815 bytes --]

From aaeac0b37bd35792dc55fbccc9d5c53e606ac3f1 Mon Sep 17 00:00:00 2001
From: Antero Mejr <antero@mailbox.org>
Date: Mon, 15 May 2023 23:15:33 +0000
Subject: [PATCH 2/2] Allow viewing .dcm images via image-convert.

* lisp/files.el (auto-mode-alist): Support the DICOM .dcm image
format.
---
 lisp/files.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/files.el b/lisp/files.el
index ba338e01c6b..2e42d0e74d1 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3053,6 +3053,7 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|CBR\\|7Z\\|SQUASHFS\\)\\'" .
      ("\\.cmyk\\'" . image-mode)
      ("\\.cmyka\\'" . image-mode)
      ("\\.crw\\'" . image-mode)
+     ("\\.dcm\\'" . image-mode)
      ("\\.dcr\\'" . image-mode)
      ("\\.dcx\\'" . image-mode)
      ("\\.dng\\'" . image-mode)
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-11-02 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-15 23:30 bug#63531: [PATCH] View DICOM and Sixel images using image-convert Antero Mejr via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-16 16:23 ` Eli Zaretskii
     [not found]   ` <871qjgtc37.fsf@mailbox.org>
2023-05-16 17:38     ` Antero Mejr via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-22 18:36       ` Stefan Kangas
2023-11-02 17:06         ` Antero Mejr via Bug reports for GNU Emacs, the Swiss army knife of text editors

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.