From mboxrd@z Thu Jan 1 00:00:00 1970 From: Terje Larsen Subject: Support for something like org-image-max-width Date: Sun, 01 Dec 2019 21:42:03 +0100 Message-ID: <87wobfhj6s.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45390) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibW2j-0006yi-5Z for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 15:42:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibW2i-00073k-93 for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 15:42:09 -0500 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:35598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibW2h-00072q-2G for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 15:42:08 -0500 Received: by mail-lj1-x231.google.com with SMTP id j6so28531924lja.2 for ; Sun, 01 Dec 2019 12:42:06 -0800 (PST) Received: from beetle (h-212-85-78-248.NA.cust.bahnhof.se. [212.85.78.248]) by smtp.gmail.com with ESMTPSA id s20sm6134290lfb.30.2019.12.01.12.42.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2019 12:42:04 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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? Best regards, Terje Larsen