From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sK2/CgFPo2aUPAEA62LTzQ:P1 (envelope-from ) for ; Fri, 26 Jul 2024 07:23:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sK2/CgFPo2aUPAEA62LTzQ (envelope-from ) for ; Fri, 26 Jul 2024 09:23:45 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OgPwAeXP; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721978625; 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; bh=dhRH1mblU0XiyDwWpzZtHF/YzvlPFOX2v8RPx2sC1CQ=; b=sDVlhRNt4GE42HQx0938yvhhFqggaB2GoTKqiSe28HNjokamZCXIElViK3Hw8iZj59AVcC oaIl6ddk6IcJJXF+/5Io+K4lstjLY0PSIZTx5cTtBkvEbXbcN9+cMF/PL7JvUvzzpSBh/E T8fFXNOSS3Jntust7u20JATe6QkbUFOKhKMuOZe1NXzs5Zhb1UCVJPR/O9zCT+kPsdavBo KVY4oa3pJVthsQQvL/eppxLCru3MhPji/xBTfLI+rIHvJu27WAFPO9u4p4EbAA6xy4qjD8 hQBk/r8+OZnudf3bABupymp3Pfla2z3bc5ZW2LhJ0fRVHocgVh8kNUgaPWL2BA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721978625; a=rsa-sha256; cv=none; b=tcn7XbF3E5IJsOwrohe5QDWYmJcu2MZeC6lBtIapH5j9rUFxYZ4f2pEqW175pe2K8+gbqQ klwWczJ/Gm6CJ1P0OMrhSfOPCYfj4RZ3ilvp6jy1b360SjpbEsg3rI1NaJqRxeMz6xD4qY ueFMOef6NJgxC0viYQZyVs/7/F1myeB8P8uFHoGQLcdP6fCuxXoBzNoxvMALKQ7tpeDPgS nhXmSdVBIAUUpEAVL0wMl+HDzpS/hmDlVQEet21KikXcv0nqhRHkH3uvOW3qrp+5ea4jkw kwcxcR4RVS2AvrcBHynb5jJXQYwBk3nMRDdUPXwwWTCyEMoRCbUFS7ZPPjRCRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OgPwAeXP; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 1A716627BC for ; Fri, 26 Jul 2024 09:23:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXFHv-0006py-Pj; Fri, 26 Jul 2024 03:22:51 -0400 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 1sXFHt-0006p0-Nl for emacs-orgmode@gnu.org; Fri, 26 Jul 2024 03:22:49 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXFHr-0004yc-Qd for emacs-orgmode@gnu.org; Fri, 26 Jul 2024 03:22:49 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id ACF1D240105 for ; Fri, 26 Jul 2024 09:22:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1721978564; bh=lcwSBm6ihRzi7TzvCC0GrxbBiJ1vbJ/qRJXraRHtO0I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=OgPwAeXPDYvHSflYgCdckXdmq03O1lFgxyXDavjmtq+iaOEzU57XMnNMb56pAKd9B Ts7fdt879PrznLU6mXqY3ZqlpWwmE+kG2HnB4JTXo/BIewJNlTDIBz/1VvR59s0aQs UEsP6V8gplvD56iLb06NPqsx/1HQsJ45Tqm7SgmwvS4chBMF6MbQpaKTTg1x6Gd6GU vKLGoxsxXqV8mAfKo9BAtmTDB2WvdM7sYvZuulcM+9iOC4qpVtKDBAIzhBbo8Z6pJM MaHAxNZ5mpsoj4Vir5NTSBHqqNnuOO3k+LhvnMuRqwVkm5xKZRL/jIPcgxbubo0PFR BUh/prQL35kQA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WVfNM36FJz9rxB; Fri, 26 Jul 2024 09:22:43 +0200 (CEST) From: Ihor Radchenko To: Terje Larsen Cc: emacs-orgmode@gnu.org Subject: Re: Support for something like org-image-max-width In-Reply-To: <87wobfhj6s.fsf@gmail.com> References: <87wobfhj6s.fsf@gmail.com> Date: Fri, 26 Jul 2024 07:24:05 +0000 Message-ID: <87h6cc4nvu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 1A716627BC X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.64 X-Spam-Score: -9.64 X-TUID: el4lsYfbIYkO Terje Larsen writes: > There is already org-image-actual-width but the problem with that one is > that images that have quite small width, but are tall will be scaled and > become very tall. > > I think it would make sense to introduce something like > org-image-max-width, which would scale images that are larger than this > width, but leave images within this width alone. > > Another interesting thing would be to be able to adjust the max-width to > the width of the buffer, but not sure how well that will play in all > cases and how complex that would be. > > Any thoughts on this? Since Org 9.7, Org mode has `org-image-max-width'. The default is using `fill-column' width. Done. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at