From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WFD+KyvLW2e9BQAAe85BDQ:P1 (envelope-from ) for ; Fri, 13 Dec 2024 05:50:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WFD+KyvLW2e9BQAAe85BDQ (envelope-from ) for ; Fri, 13 Dec 2024 06:50:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ba0xUl9q; 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=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734069035; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=N8AVhX6UakWNJasXmfZF+ufnAyok6F3WFMRuCJQpZSY=; b=eco/R10sKrP0F8mOFBP+pv1qstfeN6UdgjsWpxY9O/ny8/rc3ZMCmOHbRKuUd39Wg6hhNF vDTWwziUnLDo46raD5+O0gVnV3r813njxrkDRZ7nhvC5HiqpVyU5VZPI9CvPWsNjPIt9UT EBMbdDGc9cweqToGG5F4Qx2EsnSfvVqxs1nsd2ShjOkmEbcrbr7UP3cV85ybZfPY0AANhg GJDEU7+f/o95TTMUw9neNpgzunRGMq70VcETGRqFGN5CMq4T89AJ9auLZLNl3Ge07TgRN0 FVh9gdsTCXwzec8Mv3YWZpjQFfwQSY30jGmVNGsM/IYirpc+dsL5GzG8Ji47cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ba0xUl9q; 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=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734069035; a=rsa-sha256; cv=none; b=DXRuIn2eZOkL8eZ4tOSu5PzQrKFJIs9bQugFwLjAvx4JdXPn5Dvisqje+AI/kI84o6cxCb 2waugnuPQm2nADSMWvFAO4pqlrSpvMabvQ68BQK6HDgTW5mdn7H6sTzSKwWha67SCTTCiW KioF3d/PEzY19pSdvp7GvCEKy5LbtKcLiuntZjuQ0e6ah6VY9DdGO2BO6fttqcmAUw49kr XdBCngcEOoFw0iOm9mYdmk0HsYuzRLkZXXhWqiJgNXzOPDKK8rNUCzZvYojWzm2HbpvcjR H6HEopODTkv/6iYdpROarXdCz6EyTOTuV+Soosm79A0aA0M03uOvU8ulColqAA== 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 9B6F28E6B9 for ; Fri, 13 Dec 2024 06:50:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLyYj-0004wq-6Y; Fri, 13 Dec 2024 00:49:53 -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 1tLyYh-0004vq-5n for emacs-orgmode@gnu.org; Fri, 13 Dec 2024 00:49:51 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLyYf-0000UV-D6 for emacs-orgmode@gnu.org; Fri, 13 Dec 2024 00:49:50 -0500 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-2162c0f6a39so23737925ad.0 for ; Thu, 12 Dec 2024 21:49:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734068986; x=1734673786; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=N8AVhX6UakWNJasXmfZF+ufnAyok6F3WFMRuCJQpZSY=; b=Ba0xUl9qn+badNr4xY1antgtmypg6Cn7JP6JOwDDuff9h8YmkqMyt2DnJ/r2XcRi5Q a+hMQBAF9tIBtRvIV9hDLJaEftmIkw3gm2TXubveIeGw+2K/1AGoOAx1n+h0d6SbK+8y ll5jDAXXZqvi8ouU74BdY7AzQCy1taq+HIgFg2X/xHliwXeUeJcL+202AZQJtuoAXwZ+ zTPdQk4q2BbLMSBEgYJ4HHPlqYf4XnTS20LGkuyRaxuSv1s2uij6WngAIRhrmaN85uYx wZQkrWk7IoQSlEUYXl7f4hixZj9tUIhvf7yNuPsiZbeBjCf8mlJkBivXWeVHfuLFtiPB rYKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734068986; x=1734673786; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=N8AVhX6UakWNJasXmfZF+ufnAyok6F3WFMRuCJQpZSY=; b=TMUe7hnWRMAONijo7Qf7+O+zsOm8ceG2g0GHDpmO8hQq5UMpSm8mHGDfVacjjUvvoo X3hb6rRJlUYyb0M9MmoW0BcEEjyyuFpge3ZbztIr+aiyoJxph1Eiyg+krtrlPH1B+UPT 1QOoQ5avN7QUJtkpXkIox2kgrzOCJSEmB4HYtsAOviYzzVjzvKOLaZ+iEiZgUJcrBqgR Vi9vJUbgxYUhRd9HF8/qLZcFFr4tZJXpKEV4bODXLf6Tyt3M/OPFQ1TyZHF/zlTXDZgT VC46XmibsTQ2d4bxIdls7k60nvCYEEiW2yUX61jmVUePqy6vswOV7XWYnYd/MfTEIIEm b4ow== X-Forwarded-Encrypted: i=1; AJvYcCWt2YyvBmwVYELoND2jmZSQr1QBVlme3fjmNdTqDU5Q5C5BdLsRq7mZ7R58+uyfF1zx41L3u/xt9nITub5m@gnu.org X-Gm-Message-State: AOJu0Yy+ciDJu9UKhAeMNM8rfTBBCSItdRS+GsPCyc45r2ba7vjpvYl3 cxNrQV+HBewdhfLBdPizdAN2nwxXGSu4FsRiBOXxOaVmCRKlKloV0E0w5w== X-Gm-Gg: ASbGncuRoQXGSddCfrWHtdArQp1Sk/DXxdp65AzAV6fWu2F8nWVbKerWSUeyPw+E9bh Fx+IPSL9xQs1wUc77/YzOVulZ4bVpzgdp0/dZhkI3r62yQzLDCOSG0iHAHOdax5LCRhaySxU218 jT3clm2PanPZQjrxbX/+ZGiKo+YZRUfJtPFE5aLfHgtdWdA7l5ZwZuRMLGRUtow0/npI5/x6V45 EwfbSbo29PFkilR1Y3QMpnlP7M4OUvfX7fNUJTmTE6Pvb703MLOOrnGGa6ons/NkRi9Cg== X-Google-Smtp-Source: AGHT+IH0hFFQcyrntD6YK1Fk8IXmY7Up6enoB0EcwaAFaOIR/jYQ+AumTmaHFuXlHOrVLbNTEgC5yA== X-Received: by 2002:a17:902:f60e:b0:216:39fa:5c97 with SMTP id d9443c01a7336-2178c7e8221mr97540355ad.11.1734068986383; Thu, 12 Dec 2024 21:49:46 -0800 (PST) Received: from localhost ([2600:8802:5726:2500:745d:a2d5:d9d4:8a2d]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2161ad3392esm114462315ad.236.2024.12.12.21.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 21:49:45 -0800 (PST) From: Karthik Chikmagalur To: =?utf-8?Q?Bj=C3=B6rn?= Bidar , emacs-orgmode@gnu.org Subject: Re: Link preview generation with new link preview property In-Reply-To: <6755f138.0c0a0220.40388.51fbSMTPIN_ADDED_BROKEN@mx.google.com> References: <6755f138.0c0a0220.40388.51fbSMTPIN_ADDED_BROKEN@mx.google.com> Date: Thu, 12 Dec 2024 21:49:45 -0800 Message-ID: <874j382kue.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: mx11.migadu.com X-Migadu-Spam-Score: -2.40 X-Spam-Score: -2.40 X-Migadu-Queue-Id: 9B6F28E6B9 X-TUID: JDVY2qTScxUM > The PR do port the package to this new handler property: > https://github.com/gaoDean/org-remoteimg/pull/4 > > However it left me with a few questions: > - Who is supposed to take care of the scaling/width of the preview > image, the handler or the caller of the handler? The handler is responsible for sizing the image. The reason for this is that the preview does not have to be an image -- it can be any kind of overlay decoration. If you decide to use an image file as the preview, you can call `org-link-preview-file' inside your handler to handle the geometry for you. This includes the size and alignment specified by #+attr_* keywords, `org-image-max-width' and `org-image-align'. If you are using a preview image from image data, you'll have to copy some of the code in `org-link-preview-file' to your handler if you want to respect these user options. > - When calling the link preview function for a description with prefix > argument 1 I noticed that it doesn't get the contents of the > description. > Why is that? In this instance the link looked like this: > [[https://stable.melpa.org/#/rpm-spec-mode][file:https://stable.melpa.org/packages/rpm-spec-mode-badge.svg]] I don't follow. What do you mean by "it doesn't get the contents"? Did the preview work as expected when you used a prefix arg of 1? Karthik