From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UB+rK083OGMO8wAAbAwnHQ (envelope-from ) for ; Sat, 01 Oct 2022 14:49:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OB6yKU83OGOEFwAAG6o9tA (envelope-from ) for ; Sat, 01 Oct 2022 14:49:19 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3DD3A219B0 for ; Sat, 1 Oct 2022 14:49:19 +0200 (CEST) Received: from localhost ([::1]:40986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oebvi-000055-B8 for larch@yhetil.org; Sat, 01 Oct 2022 08:49:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oebvI-0008WM-Gb for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 08:48:52 -0400 Received: from [39.171.215.24] (port=5966 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oebvF-0008Oo-8f for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 08:48:52 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id 60E0C6678574; Sat, 1 Oct 2022 20:48:40 +0800 (CST) References: <6337ac4e.050a0220.c05b9.7747SMTPIN_ADDED_BROKEN@mx.google.com> <87r0zs14ur.fsf@localhost> <63380111.050a0220.592f2.fab7SMTPIN_ADDED_BROKEN@mx.google.com> <87o7uvsuid.fsf@localhost> User-agent: mu4e 1.8.9; emacs 29.0.50 From: "Christopher M. Miles" To: Ihor Radchenko Cc: "Christopher M. Miles" , Org Mode Subject: Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image? Date: Sat, 01 Oct 2022 20:45:15 +0800 In-reply-to: <87o7uvsuid.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.215.24 (deferred) Received-SPF: softfail client-ip=39.171.215.24; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 58 X-Spam_score: 5.8 X-Spam_bar: +++++ X-Spam_report: (5.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001 autolearn=no autolearn_force=no X-Spam_action: reject X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664628559; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=0svK2xpV3q3ek5Zct+Huc2/qAplqRDhuNPyjhlRlDNs=; b=efILIcyZGvQzd9UEIDuDHV1bkU68xCayhDiKmbmE1QU3twXYyC65bC8HtE8EFopRKE+Abf oAjZ68Eq79+CmhPl0gTpqXXSXN9Ipo3CVvR2tGmoAZv0TlxvuQDM03PxC+5ozzq/Bzz2A1 ku1bU5Oe2V7/NQBBU+y1HBqK3ep6JlsbBEGnvWaGOsP+c+3PbNEhJF+xbAT/CtcXF78b88 nmSpvHLVMZqQ4IZ0PPw+m2jL+G0X+WeiT+ilg0tUKsEqUVCuIoLnuOuFsxQ+UuZLne6HAd SMxU+Wt/nu25q3ZTMBd+ZiS8AWRnqvMzqr3d67Bv98qPQ4KyQFPEeqf9NqQYYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664628559; a=rsa-sha256; cv=none; b=W/+N3cdbVpvBciVfA2b5y151UD3bZEYMEiJQI5+1Tnq1oLGorvviEBGnRTCNyDRhk1/kw0 0iJGLuIlA7d6ab7VY6zVBxsHmpPEveGbISCON5wL+3G0kMzN1ttVcVWk1H00FbteHy5+Jl R4v+SIZnRS6KPE1xzyREz6EKsRSYvG/POjfTCy9vACooplB6PvqbCANUUkldsztsD5x7Cw hgCS3W/NddyJdu9Rhe3THWMDdapms+X/JEVCOSPTADLXqHyYO+RkyBHThsi5TVlpw5ZXki 9B+nJCkhGZWBwKUwiXq7n8TzLgn9Vb1cUjh/ZCII1FXRVjrQe5+5xzggEXYNfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.76 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3DD3A219B0 X-Spam-Score: 2.76 X-Migadu-Scanner: scn1.migadu.com X-TUID: l4x/bbMGg04M --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> 2. install package =3D[M-x package-install RET org-link-beautify RET]= =3D > > Hmm. Can you also reproduce without org-link-beautify? I replaced step 5 with step 6 by extracting the logic code of org-link-beautify, but I found it does not have center-line. That's really weird. 1. =3D$ emacs -Q=3D 2. install package =3D[M-x package-install RET org-link-beautify RET]=3D 3. load the package =3D[M-x load-library org-link-beautify RET]=3D 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 =3D[M-x org-link-beautify-mode RET]=3D. This mode wi= ll auto thumbnail for video file and display it with /text-property/. 6. reproduce without org-link-beautify #+begin_src emacs-lisp (let ((start (point)) (end (save-excursion (forward-word) (point)))) (org-link-beautify--add-overlay-marker start end) (put-text-property start end 'display (create-image "~/Downloads/.thumbnails/3veEPJrQrV1EtpH9.pn= g" nil nil :ascent 'center :max-height 512)) (make-local-variable 'image-map) (define-key image-map (kbd "") 'org-open-at-point)) #+end_src 7. The displayed thumbnail on link has a center-line. 8. But open the generated thumbnail image file =3Dfile:.thumbnails/3veEPJ= rQrV1EtpH9.png=3D with external program, it does not have this center-line. =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmM4NyQACgkQG13xyVro msMyNAgAmi0ckAn3p6pPv+yIdGIt0gKf4RZEyi6Wz4+CnMuLHLwbG4AvhhYABu5j GYiyF/qmL0Ig3dDNuQkbOr977RRRb17CwdjYkDtWvSLWamgUNGgCMTJdvTea1lDv /2fGquIkJ2aC2c0mrVKwfodyjlQU+sedHQmIJuzfknucBgnge1UIYdGGXmyJz+te reZelTtyiXO2HXZ44+XOAxeH2h5wmQS+TS4aSz0cuZz5bfpFAWusuNuPU9JiTHSl ajWjfhYIyDzATabimbKjUOjT9jCGFIUMFnlKkMQLFbhfgR0KRDRRu2o8nrCATh2+ zejnimh7aiPmIM79ABc2sU2STa9nnw== =A0VQ -----END PGP SIGNATURE----- --=-=-=--