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 wIn8NmQBOGPxYgAAbAwnHQ (envelope-from ) for ; Sat, 01 Oct 2022 10:59:17 +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 mKYhNmQBOGPUaQEAG6o9tA (envelope-from ) for ; Sat, 01 Oct 2022 10:59:16 +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 C404D1C2FF for ; Sat, 1 Oct 2022 10:59:15 +0200 (CEST) Received: from localhost ([::1]:59094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeYL4-0005lQ-H5 for larch@yhetil.org; Sat, 01 Oct 2022 04:59:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeYJh-0005k2-RO for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 04:57:49 -0400 Received: from [39.171.215.24] (port=5928 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeYJc-0007xK-4J for emacs-orgmode@gnu.org; Sat, 01 Oct 2022 04:57:49 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id 2C556667399A; Sat, 1 Oct 2022 16:57:33 +0800 (CST) References: <6337ac4e.050a0220.c05b9.7747SMTPIN_ADDED_BROKEN@mx.google.com> <87r0zs14ur.fsf@localhost> User-agent: mu4e 1.8.9; emacs 29.0.50 From: "Christopher M. Miles" To: Ihor Radchenko Cc: numbchild@gmail.com, Org Mode 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 In-reply-to: <87r0zs14ur.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=1664614756; 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=SXsdEkfIN+Vw9hU4tlPqPHrob3UmplIJZ6Ge8HsxZfU=; b=J82qaBx/jPzS8eJZBV3+Z782en2SNAc3iPL4vzJButGHpiTzwqi65/GT2VfqfQj7HWOcCP +QKv/SF6K2UqTr1RfrVIJTXBkI1FoXBjdC+/7P81J6rNmY3GeITzn6YXvnDHOgN+aFkTLR PZilX3pTLyT8/3pdoMtX04ZJIIBBqZEwAO/u81YByGQDpy7ojNvo3IScWCtw41thpkNGLr fbK+nvrcpCtk2gyKOh9JHZAxCSplILMRq5PGFTWeqjeQESYvzrDqB9pp4mxz3XG5AN0lVY H6J0ApxIe8Bi0gJ16AtQm4Sxe+JrqO83eBG4dN7feFPXJyWluYwJIqPNJdWAew== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664614756; a=rsa-sha256; cv=none; b=L52Kjhf2oYaGZ9YmXC0KCFvKo31RShjHMK38d9JKU+R8dhpKRdsEYadR6W3W8bknw+brLo uTF28Bfq4eU2b0rQdjoGjKpC3cv59fLjqIGdS/fqBvjy8Z/15jDkXlYjnXvcYjmD2j+t3Y gNErnMadPTjhFGXr2HTtUyLph8/Ws19PnxLGhVjClOeaQvIOk47cpTCNJccoWWulAGIYkP jRQl4z32nUvF0x0wmdVxGtetebAq52o6n07XEl6pumVchZLnuCpkaUgdh0c/IW8FRet/IR V7hnkAVGW7jrna5yT9hT464pm7Q3FE2LuOgIZgTtTm4/d+CqdHC03Q/f9EXxiQ== 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: C404D1C2FF X-Spam-Score: 2.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: r+oQwAc8zcOv --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > "Christopher M. Miles" 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 'ce= nter :max-height thumbnail-size)) >>> #+end_src >>> >>> - If this is some kind of internal mechanism of Emacs, can someone expl= ain 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. =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,=20 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 =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. The displayed thumbnail on link has a center-line. 7. 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----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmM4APkACgkQG13xyVro msM2dQgAu+bbMAi+vfyjin+BuZ8koiRKD7OJ7zNin1u37ke5/mdiXgcTBdWl+IAS Yhf9/uE7mK9kxu8H9MDqQIxRmQ/L2/uXPuB3rqwaPmWAl6LZ/R8gKSuHfFooEKoT z0+2yBgv5a8+giEmh0a95Pgy0WYFxTvKVWz0sw7yC0AOsdLQZR+4sBRwBfJU8MYM AaXqkESGhglkFBO6jNQD9Hopy5SSkRNJrrGTPVZN+sAwnZmO4yFtDYNPhcaBvDLW 5FxfhBxcVsmKw/dc/RyUrhC+1MImDZlNWg75sdN3SUEZpybXQZKuc5v9/4cRbP7z /VI2ec1DNqtpqZM1kXJSsBKMol64rw== =bROH -----END PGP SIGNATURE----- --=-=-=--