From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: Scaling of image previews in org-mode Date: Wed, 10 Aug 2016 08:11:34 +0000 Message-ID: <87fuqdt555.fsf@mat.ucm.es> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXOcD-0008K5-1N for emacs-orgmode@gnu.org; Wed, 10 Aug 2016 04:11:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXOc7-00036H-LM for emacs-orgmode@gnu.org; Wed, 10 Aug 2016 04:11:51 -0400 Received: from [195.159.176.226] (port=47692 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXOc7-00034K-Ec for emacs-orgmode@gnu.org; Wed, 10 Aug 2016 04:11:47 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bXOc1-0008PU-L1 for emacs-orgmode@gnu.org; Wed, 10 Aug 2016 10:11:41 +0200 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 >>> "John" == John Kitchin writes: > I use this code here: > https://github.com/jkitchin/scimax/blob/master/scimax-org.el#L957 > to provide inline scaling in Emacs when it is not built with imagemagick. Hi Could that package or parts of it also be used in other modes? I have the problem of displaying images in latex buffers (using auctex) The only available tool I know is iimage.el, but this package does not allow to re-seize the displayed image. I asked about it on emacs devel and the answer was: «please send a patch or wait», fail enough I just attach the mail in question below in order to clarify. ,---- | | | | I just learnt about iimage.el, which is now part of GNU emacs core. I | like it quite a lot, the only thing which I find a bit inconvenient on | my 12 inch Laptop is the size of the images displayed. I did not find | any variable in which the size of images could be changed. | | | The author's address does not work anymore, so I looked at the code it | seems that the essential part is this: | | (if arg | (add-text-properties (match-beginning 0) (match-end 0) | `(display ,(create-image file) | ^^^^^ | modification-hooks | (iimage-modification-hook))) | | | Now I checked that function and its documentation says | ,---- | [+] | | | | create-image is an autoloaded compiled Lisp function in ‘image.el’. | | (create-image FILE-OR-DATA &optional TYPE DATA-P &rest PROPS) | | Create an image. | | .... | | Images should not be larger than specified by ‘max-image-size’. | `---- | | | However | ,---- | [+] | | max-image-size is a variable defined in ‘C source code’. | | Its value is 10.0 | `---- | | So I cannot change that value easily. Anybody has an idea how to change | the size of the displayed images? | | thanks | | Uwe Brauer | `----