[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Link preview: Applying color filter based on current theme
From: |
Ihor Radchenko |
Subject: |
Re: Link preview: Applying color filter based on current theme |
Date: |
Tue, 10 Dec 2024 20:17:31 +0000 |
Tarjei Bærland via "General discussions about Org-mode."
<emacs-orgmode@gnu.org> writes:
> I use a lot of simple hand-drawn sketches in my notes. Ideally, I'd like
> a setup where I could take a quick photo of these, and the crop and
> adjust saturation and contrast to the point where they appear as black
> pen lines on a white or transparent background.
>
> It would be perfect if I could preview these in a way where the
> background and line colors match my current theme's foreground and
> background colors. I can write a imagemagick command for getting the
> colors transformed, so I guess what I'm wondering is whether it would be
> simple to call this command before previewing the image?
Check out [[info:elisp#Image Descriptors]] (:mask descriptor).
You may advice the (org-link-get-parameter "file" :preview) to apply
mask to the displayed image.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>