riscy / shx-for-emacs

An Emacs shell-mode (and comint-mode) extension that enables displaying small plots and graphics and lets users write shell commands in Emacs Lisp.
GNU General Public License v3.0
218 stars 10 forks source link

view image dont work on Windows because of builtin Windows 'convert' #37

Open tu10ng opened 1 month ago

tu10ng commented 1 month ago

after installing imagemagick successfully on Windows using scoop package manager, view cant show image because convert still points to Windows builtin convert.

image

by changing shx-path-to-convert to magick, we can show the image.

(setq shx-path-to-convert "magick")

image


another thing is that if we use magick convert instead of magick command according to installation notes:

'imagemagick' (7.1.1-33) was installed successfully! Notes 'convert.exe' is deprecated in v7 (it also conflicts with the builtin Windows 'convert' utility). Use 'magick convert ...' instead.

magick will complain that:

WARNING: The convert command is deprecated in IMv7, use "magick"

however, using just magick is fine.