Ihor Radchenko <[email protected]> writes: > "Christopher M. Miles" <[email protected]> writes: > >>> Here is the prototype code which displaying image with text-property: >>> >>> #+begin_src emacs-lisp >>> (put-text-property start end >>> 'display (create-image thumbnail nil nil :ascent 'center >>> :max-height thumbnail-size)) >>> #+end_src >>> >>> - If this is some kind of internal mechanism of Emacs, can someone explain >>> why? >>> >>> - If have some method to remove those horizontal lines. How to do it? > > Could you please detail the steps required to reproduce the problem, > starting from emacs -Q?
Here is the steps to reproduce with "emacs -Q"
1. =$ emacs -Q=
2. install package =[M-x package-install RET org-link-beautify RET]=
3. load the package =[M-x load-library org-link-beautify RET]=,
the package source code URL here: https://repo.or.cz/org-link-beautify.git
4. open an Org file which has content which has a "file:" link to a video
file (You can replace
the video file link as yours) :
#+begin_src org
,* headline 1
link [[file:~/Downloads/3veEPJrQrV1EtpH9.mp4]]
#+end_src
5. enable minor mode =[M-x org-link-beautify-mode RET]=. This mode will auto
thumbnail for video
file and display it with /text-property/.
6. The displayed thumbnail on link has a center-line.
7. But open the generated thumbnail image file
=file:.thumbnails/3veEPJrQrV1EtpH9.png= with external
program, it does not have this center-line.
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express without
misunderstanding.
Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
signature.asc
Description: PGP signature
