org-download

a fork of abo-abo's org-download
git clone https://git.trogloxene.org/org-download.git
Log | Files | Refs | README

commit 94c3e0d05664be0c06f870c8f2baa855d1ece9b7
parent 5f7412382d3f7d72e11884c24bb790b6b559b35e
Author: shelper <shelper@users.noreply.github.com>
Date:   Sun,  7 Nov 2021 21:35:34 -0500

Use magick to accessing clipboard on windows

ImageMagick no long has separate executable called convert, you can use magick directly

We need to use magick instead of convert 'cus windows has a
program called convert for FAT to NTFS which confuses org-download

Fixes #184

Diffstat:
Morg-download.el | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/org-download.el b/org-download.el @@ -134,9 +134,9 @@ will be used." (const :tag "scrot" "scrot -s %s") (const :tag "flameshot" "flameshot gui --raw > %s") (const :tag "gm" "gm import %s") - (const :tag "imagemagick/import" "import %s") + (const :tag "imagemagick/import" "magick import %s") (const :tag "imagemagick/import + xclip to save to clipboard" - "export filename=\"%s\"; import png:\"$filename\" ;xclip -selection clipboard -target image/png -filter < \"$filename\" &>/dev/null") + "export filename=\"%s\"; import png:\"$filename\" ;xclip -selection clipboard -target image/png -filter < \"$filename\" &>/dev/null") (const :tag "xfce4-screenshooter" "xfce4-screenshooter -r -o cat > %s") ;; screenshot method in ms-windows, /capture=4 stands for interactive. (const :tag "IrfanView" "i_view64 /capture=4 /convert=\"%s\"") @@ -148,10 +148,10 @@ will be used." (const :tag "spectacle" "spectacle -br -o %s") ;; take an image that is already on the clipboard, for Linux (const :tag "xclip" - "xclip -selection clipboard -t image/png -o > %s") + "xclip -selection clipboard -t image/png -o > %s") ;; take an image that is already on the clipboard, for Windows - (const :tag "imagemagick/convert" "convert clipboard: %s") - ; capture region, for Wayland + (const :tag "imagemagick/convert" "magick clipboard: %s") + ;; capture region, for Wayland (const :tag "grim + slurp" "grim -g \"$(slurp)\" %s") (function :tag "Custom function")))