* Link preview: Applying color filter based on current theme
@ 2024-12-10 12:51 Tarjei Bærland via General discussions about Org-mode.
2024-12-10 20:17 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Tarjei Bærland via General discussions about Org-mode. @ 2024-12-10 12:51 UTC (permalink / raw)
To: emacs-orgmode
Hi!
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?
Regards,
Tarjei
PS: Thank you very much for taking on the role as maintainer, Ihor. I
watched your Emacsconf presentation with great interest :)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Link preview: Applying color filter based on current theme
2024-12-10 12:51 Link preview: Applying color filter based on current theme Tarjei Bærland via General discussions about Org-mode.
@ 2024-12-10 20:17 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-12-10 20:17 UTC (permalink / raw)
To: Tarjei Bærland; +Cc: emacs-orgmode
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-10 20:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-10 12:51 Link preview: Applying color filter based on current theme Tarjei Bærland via General discussions about Org-mode.
2024-12-10 20:17 ` Ihor Radchenko
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.