emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Christopher M. Miles" <numbchild@gmail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: numbchild@gmail.com, Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image?
Date: Sat, 01 Oct 2022 16:55:42 +0800	[thread overview]
Message-ID: <m24jwnzzt2.fsf@numbchild@gmail.com> (raw)
In-Reply-To: <87r0zs14ur.fsf@localhost>

[-- Attachment #1: Type: text/plain, Size: 1815 bytes --]


Ihor Radchenko <yantar92@gmail.com> writes:

> "Christopher M. Miles" <numbchild@gmail.com> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2022-10-01  8:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m2illt5rzj.fsf@numbchild>
2022-10-01  2:53 ` Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image? Christopher M. Miles
     [not found] ` <6337ac4e.050a0220.c05b9.7747SMTPIN_ADDED_BROKEN@mx.google.com>
2022-10-01  5:37   ` Ihor Radchenko
2022-10-01  8:55     ` Christopher M. Miles [this message]
2022-10-01  8:58     ` Christopher M. Miles
     [not found]     ` <63380111.050a0220.592f2.fab7SMTPIN_ADDED_BROKEN@mx.google.com>
2022-10-01 10:33       ` Ihor Radchenko
2022-10-01 12:45         ` Christopher M. Miles
     [not found]         ` <63383737.050a0220.63781.8825SMTPIN_ADDED_BROKEN@mx.google.com>
2022-10-02  4:17           ` Ihor Radchenko
2022-10-02  7:03             ` Fwd: [BUG] text-property displayed image has a center-line when the text face has underline attribute Christopher M. Miles
2022-10-02  7:41               ` Eli Zaretskii
2022-10-02 10:45                 ` [CLOSED] " Christopher M. Miles
2022-10-02 11:07                   ` Eli Zaretskii
2022-10-02 14:56                     ` Christopher M. Miles
     [not found]                 ` <63396d3d.050a0220.d98c9.1ea6SMTPIN_ADDED_BROKEN@mx.google.com>
2022-10-02 10:57                   ` Ihor Radchenko
2022-10-02 11:16                     ` Eli Zaretskii
2022-10-02 11:26                       ` Ihor Radchenko
2022-10-19  7:33                       ` [SOLVED] " Christopher M. Miles

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m24jwnzzt2.fsf@numbchild@gmail.com \
    --to=numbchild@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).