From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6DFRDd6rZGeb9QAAe85BDQ:P1 (envelope-from ) for ; Thu, 19 Dec 2024 23:27:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6DFRDd6rZGeb9QAAe85BDQ (envelope-from ) for ; Fri, 20 Dec 2024 00:27:26 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=thaodan.de header.s=mail header.b=n+eqkU7u; 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"; dmarc=pass (policy=quarantine) header.from=thaodan.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734650843; h=from:from:sender:sender: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:dkim-signature:autocrypt:autocrypt; bh=Pl9Ld1+5Ao36JnEsYNYOI6J6FWcJl0Nr1+7LAtbjfwk=; b=IG3R450hfhkxgjgwWleTxrg19cje584a/WOn5/dk1c06Xk2sA2FElk83CuCpJhEi86UTmV k4YDEl35aFnMwKbXJT4DIuo4yAkz7bfBJt5rHDkqg1pTnxD06tJCjFukKvMQk97kbsnQnL /aRLTW0IZfbeALZB/TkfUT7mkk8A57EUIE3p4pyl7dEP85LAY7U2wHpCPxXWEv7gy6lMlP zoAU7tiI5gh9WZOFtPevS3ev3M58wl08VQsqxby/XtZwM88Oao8lE5N6PUV6+ZdyJkY9F9 iwoIfk+Qy86x8Ae1kP2GaKsyPgXge5IddJd2B9krCIiU9fBrjPr9XSiDyBZxlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=thaodan.de header.s=mail header.b=n+eqkU7u; 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"; dmarc=pass (policy=quarantine) header.from=thaodan.de ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734650843; a=rsa-sha256; cv=none; b=fFoftt798hpQNRr2tMygFtUA65KpB6Iwi15Ud+0DSCSDJGZ16ltnvLKYZ4orMuhxVBh4Q8 5qZVssWPxKbi/fIplzJKSkBXMIXU8mvwUISPuBpJZq/bf48tjzEuaRFshrNMeYeVweaK/Q F0waJRqsfneD2J445Mc1i5x0DS2pRq1GBq4dkE86M+XHBL497VHL7E9MGdlo/Kzxu1hAp9 4G2iu0z14MYlFcQGoA4fsqUhKJOuPP3lungs5aSqJXLGj8lEtgJ12P3s+tuPR1hyoJV/RD Z0ehXJ7wi/1Ho8u9umsK6v/KtXbniqEkip06jZR/nlJW4I2uDtVB0xM90eTGFQ== 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 4CEC1246D for ; Fri, 20 Dec 2024 00:27:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOPuc-0004Mx-9D; Thu, 19 Dec 2024 18:26:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOPua-0004MT-G7 for emacs-orgmode@gnu.org; Thu, 19 Dec 2024 18:26:32 -0500 Received: from thaodan.de ([2a03:4000:4f:f15::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOPuY-0002fO-J5 for emacs-orgmode@gnu.org; Thu, 19 Dec 2024 18:26:32 -0500 Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id E9F94D00099; Fri, 20 Dec 2024 01:26:25 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1734650786; bh=SBGCZCaBV63m3jleVEvJ13kjy+uxanKA2zeUL9ABcz4=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=n+eqkU7uLB5dyK3oIW3aoAMM6F6Voo5VCzbQZvmfrrtG6oCW8DWAolIM7nQXNz0+l ObxH/PrWS8yXFgHiMul4igRrNYPrTeO6pl+8HYNLQG1YzRakIsRQArgJ1GmscpqqUj cmWbN6EbgoBkgutzR6Hkw8ccPiw0ZbVx3ka9zHLg6Ny06d6Ay2PmPa6LnBMRSu+ek1 3/zbeqsM19LZmzwys1yPnTco1oeK0owwSEmn+7KvYFTBX4qeJRgPq0QlhYEQGTkZNi Mg1FE+VYYFsnjTuSDUFTtzsDUP3DpyUZr4SbRf4ZPJwpc9IVt9LAA0zvhvZ53Q3MUW v2bdnSE8oXkEY+vPD3PQmUkvBzYwbFoVt1WHDsoVVWkFPRtKc1ETRq3iZbPEGTDfl/ qnHI+Bs6eYKj8OKnkwbDwy4EW5+ztC6/WMymc58/komk6bSBdJ5qY7je+ihZo4skZK /Zpzwi+MN/ZkJE8nE/PCBXpyAyXQoSGVyLffgoDxLyH3kRGUQZlZucjX2awq8MhKCf HSPY9INst6KZn87hZDUJDNC9QV4tO6r+OAg3gf3OvKrRsHNjA3UE4qapkjQ9KTpAcB w4XjR5DTBxwoEfOylOGJa+y0uFwmpNdiwKE3/pgwV8UV8ZPDVaifclmSTuHJPqa66/ oYfVL5cXPQQLyyRbSsiVreHs= From: =?utf-8?Q?Bj=C3=B6rn?= Bidar To: Karthik Chikmagalur Cc: stardiviner , Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: Link preview generation with new link preview property In-Reply-To: <87o7198pqj.fsf@gmail.com> (Karthik Chikmagalur's message of "Tue, 17 Dec 2024 22:33:24 -0800") References: <6755f138.0c0a0220.40388.51fbSMTPIN_ADDED_BROKEN@mx.google.com> <874j382kue.fsf@gmail.com> <87pllug2y4.fsf@localhost> <87ldwfnff4.fsf@gmail.com> <87o7198pqj.fsf@gmail.com> Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Fri, 20 Dec 2024 01:26:25 +0200 Message-ID: <87ikrfqmou.fsf@> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a03:4000:4f:f15::1; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, INVALID_MSGID=0.568, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 1.56 X-Spam-Score: 1.56 X-Migadu-Queue-Id: 4CEC1246D X-TUID: /lSwJYkuZA6i Karthik Chikmagalur writes: >> I don't think so, my package org-link-beautify ported to the new >> :preview mechanism. The file preview not always image. Could be text, or >> icon etc. So pass in image object is not a good idea. It will limit >> preview functionality extensibility. > > The API will not be changed. Org will provide a new > `org-link-preview-image' function that you can use to preview links > using image data. You'll have to write the adapter to register this as > the :preview handler for a link type yourself. > > Karthik I'm also wondering how much could there be shared if the thing to be displayed on the overlay isn't an image. The org-image--align function talks about images but ultimately doesn't do anything specific to image. I think the alignment the only part which is generic.