From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Adjust scaling of images on hidpi screens when using org-display-inline-images Date: Fri, 30 Nov 2018 15:46:38 -0500 Message-ID: References: <87zhtqpaqz.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002474bd057be7e6fd" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSpge-0001Gh-NH for Emacs-orgmode@gnu.org; Fri, 30 Nov 2018 15:46:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSpgd-0003f0-HR for Emacs-orgmode@gnu.org; Fri, 30 Nov 2018 15:46:56 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:53646) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSpgd-0003Zd-5Z for Emacs-orgmode@gnu.org; Fri, 30 Nov 2018 15:46:55 -0500 Received: by mail-wm1-x332.google.com with SMTP id y1so229061wmi.3 for ; Fri, 30 Nov 2018 12:46:54 -0800 (PST) In-Reply-To: <87zhtqpaqz.fsf@nicolasgoaziou.fr> 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: nishan.singh.mann@gmail.com, org-mode-email --0000000000002474bd057be7e6fd Content-Type: text/plain; charset="UTF-8" I am not familiar with that variable. This variable has some influence on the appearance of images: org-image-actual-width. Note it needs imagemagick support which is tricky on windows sometimes. org-image-actual-width is a variable defined in `org.el'. Its value is nil Original value was t Documentation: Should we use the actual width of images when inlining them? When set to t, always use the image width. When set to a number, use imagemagick (when available) to set the image's width to this value. When set to a number in a list, try to get the width from any #+ATTR.* keyword if it matches a width specification like #+ATTR_HTML: :width 300px and fall back on that number if none is found. When set to nil, try to get the width from an #+ATTR.* keyword and fall back on the original width if none is found. This requires Emacs >= 24.1, build with imagemagick support. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Fri, Nov 30, 2018 at 3:33 PM Nicolas Goaziou wrote: > Hello, > > Nishan Singh Mann writes: > > > Hello everybody, the images displayed when using > org-display-inline-images > > are not scaled properly on a hidpi screen (its too small). I'm attaching > > the screenshots which show the problem. How do I resolve this? > > Perhaps by setting `image-scaling-factor'. > > Regards, > > -- > Nicolas Goaziou > > --0000000000002474bd057be7e6fd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am not familiar with t= hat variable.

This variable has some influence on the ap= pearance of images: org-image-actual-width. Note it needs imagemagick suppo= rt which is tricky on windows sometimes.

org-= image-actual-width is a variable defined in `org.el'.
Its val= ue is nil

Original value was t


Documentation:
Should we use the actual widt= h of images when inlining them?

When set to t, alw= ays use the image width.

When set to a number, use= imagemagick (when available) to set
the image's width to thi= s value.

When set to a number in a list, try to ge= t the width from any
#+ATTR.* keyword if it matches a width speci= fication like

=C2=A0 #+ATTR_HTML: :width 300px

and fall back on that number if none is found.
<= div>
When set to nil, try to get the width from an #+ATTR.* k= eyword
and fall back on the original width if none is found.

This requires Emacs >=3D 24.1, build with imagemagi= ck support.


John

---= --------------------------------
Professor John Kitchin=C2=A0
Doherty= Hall A207F
Department of Chemical Engineering
Carnegie Mellon Univer= sity
Pittsburgh, PA 15213
412-268-7803

On= Fri, Nov 30, 2018 at 3:33 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

Nishan Singh Mann <nishan.singh.mann@gmail.com> writes:

> Hello everybody, the images displayed when using org-display-inline-im= ages
> are not scaled properly on a hidpi screen (its too small). I'm att= aching
> the screenshots which show the problem. How do I resolve this?

Perhaps by setting `image-scaling-factor'.

Regards,

--
Nicolas Goaziou

--0000000000002474bd057be7e6fd--