* Images in org-mode
@ 2022-09-10 19:03 Colin Baxter
2022-09-10 19:27 ` Dominik Schrempf
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Colin Baxter @ 2022-09-10 19:03 UTC (permalink / raw)
To: emacs-orgmode
I seem to remember that the option
#+ATTR_ORG: :width 100
could scale the display of an image in an org-mode file. This no longer
works - perhaps it never did. How should I scale an image display in an
org-mode file (not exported)?
Best wishes,
Colin Baxter.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Images in org-mode
2022-09-10 19:03 Images in org-mode Colin Baxter
@ 2022-09-10 19:27 ` Dominik Schrempf
2022-09-10 20:45 ` Mark Barton
2022-09-11 13:48 ` Max Nikulin
2 siblings, 0 replies; 8+ messages in thread
From: Dominik Schrempf @ 2022-09-10 19:27 UTC (permalink / raw)
To: m43cap; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
Maybe there are other options, but I think the canonical way is to use the
variable `org-image-actual-width’. The help mentions some ATTR_XXX options, so
you may find more answers there!
Dominik
Colin Baxter <m43cap@yandex.com> writes:
> I seem to remember that the option
>
> #+ATTR_ORG: :width 100
>
> could scale the display of an image in an org-mode file. This no longer
> works - perhaps it never did. How should I scale an image display in an
> org-mode file (not exported)?
>
> Best wishes,
>
> Colin Baxter.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Images in org-mode
2022-09-10 19:03 Images in org-mode Colin Baxter
2022-09-10 19:27 ` Dominik Schrempf
@ 2022-09-10 20:45 ` Mark Barton
2022-09-11 19:30 ` Colin Baxter
2022-09-11 13:48 ` Max Nikulin
2 siblings, 1 reply; 8+ messages in thread
From: Mark Barton @ 2022-09-10 20:45 UTC (permalink / raw)
To: m43cap; +Cc: emacs-orgmode
> On Sep 10, 2022, at 12:03 PM, Colin Baxter <m43cap@yandex.com> wrote:
>
>
> I seem to remember that the option
>
> #+ATTR_ORG: :width 100
>
> could scale the display of an image in an org-mode file. This no longer
> works - perhaps it never did. How should I scale an image display in an
> org-mode file (not exported)?
>
> Best wishes,
>
> Colin Baxter.
>
>
Check the value set for org-image-actual-width. Mine defaulted to t, so I changed it. There is some documentation if you use:
C-h v org-image-actual-width
Mark
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Images in org-mode
2022-09-10 19:03 Images in org-mode Colin Baxter
2022-09-10 19:27 ` Dominik Schrempf
2022-09-10 20:45 ` Mark Barton
@ 2022-09-11 13:48 ` Max Nikulin
2022-09-12 11:08 ` Ihor Radchenko
2 siblings, 1 reply; 8+ messages in thread
From: Max Nikulin @ 2022-09-11 13:48 UTC (permalink / raw)
To: emacs-orgmode
On 11/09/2022 02:03, Colin Baxter wrote:
>
> I seem to remember that the option
>
> #+ATTR_ORG: :width 100
>
> could scale the display of an image in an org-mode file. This no longer
> works - perhaps it never did. How should I scale an image display in an
> org-mode file (not exported)?
You have not specified version of Org. E.g. the outcome of the following
thread is likely not included into the release version:
Matt Huszagh. [PATCH] Fix regex for determining image width from
attribute. Sun, 21 Nov 2021 11:08:54 -0800.
https://list.orgmode.org/87czmtuy0p.fsf@gmail.com
See also the docstring for `org-display-inline-image--width'
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Images in org-mode
2022-09-10 20:45 ` Mark Barton
@ 2022-09-11 19:30 ` Colin Baxter
0 siblings, 0 replies; 8+ messages in thread
From: Colin Baxter @ 2022-09-11 19:30 UTC (permalink / raw)
To: Mark Barton; +Cc: emacs-orgmode
>>>>> Mark Barton <mbarton98@gmail.com> writes:
>> On Sep 10, 2022, at 12:03 PM, Colin Baxter <m43cap@yandex.com> wrote:
>>
>>
>> I seem to remember that the option
>>
>> #+ATTR_ORG: :width 100
>>
>> could scale the display of an image in an org-mode file. This no
>> longer works - perhaps it never did. How should I scale an image
>> display in an org-mode file (not exported)?
>>
>> Best wishes,
>>
>> Colin Baxter.
>>
>>
> Check the value set for org-image-actual-width. Mine defaulted to
> t, so I changed it. There is some documentation if you use: C-h v
> org-image-actual-width
Yes, org-image-actual-width is the variable I need. It was set to 't'
and I've now changed to a number. With the #+ATTR setting it works as
per the documentation.
I should have gone through the list of variables more carefully before
posting. Thanks you all for your help.
Best wishes,
Colin.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Images in org-mode
2022-09-11 13:48 ` Max Nikulin
@ 2022-09-12 11:08 ` Ihor Radchenko
2022-09-12 12:02 ` Timothy
0 siblings, 1 reply; 8+ messages in thread
From: Ihor Radchenko @ 2022-09-12 11:08 UTC (permalink / raw)
To: Max Nikulin; +Cc: emacs-orgmode
Max Nikulin <manikulin@gmail.com> writes:
> Matt Huszagh. [PATCH] Fix regex for determining image width from
> attribute. Sun, 21 Nov 2021 11:08:54 -0800.
> https://list.orgmode.org/87czmtuy0p.fsf@gmail.com
Did it get merged? There are several patches proposed in that thread,
but I do not see them being actually merged upstream.
--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Images in org-mode
2022-09-12 11:08 ` Ihor Radchenko
@ 2022-09-12 12:02 ` Timothy
2022-09-13 13:14 ` Ihor Radchenko
0 siblings, 1 reply; 8+ messages in thread
From: Timothy @ 2022-09-12 12:02 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Max Nikulin, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]
Hi Ihor,
> Max Nikulin <manikulin@gmail.com> writes:
>
>> Matt Huszagh. [PATCH] Fix regex for determining image width from
>> attribute. Sun, 21 Nov 2021 11:08:54 -0800.
>> <https://list.orgmode.org/87czmtuy0p.fsf@gmail.com>
>
> Did it get merged? There are several patches proposed in that thread,
> but I do not see them being actually merged upstream.
Mmm, that thread ends with me proposing a specific approach and Matt saying it
sounds good (<https://list.orgmode.org/871r2ucuhz.fsf@gmail.com>, quoted below),
but from there no further patches are provided (unless I missed something).
> Thanks for continuing with this. Moving forward, I think it would be best to:
> ⁃ Make a patch just for prioritising `#+attr_org’
> ⁃ Make a patch just improving the regex (before or after the `#+attr_org’ patch)
> ⁃ Discuss changing the behaviour of image previews separately later / in another
> thread, linking to this thread when doing so.
>
> How does that sound?
Yep, sounds good.
All the best,
Timothy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Images in org-mode
2022-09-12 12:02 ` Timothy
@ 2022-09-13 13:14 ` Ihor Radchenko
0 siblings, 0 replies; 8+ messages in thread
From: Ihor Radchenko @ 2022-09-13 13:14 UTC (permalink / raw)
To: Timothy; +Cc: Max Nikulin, emacs-orgmode
Timothy <orgmode@tec.tecosaur.net> writes:
>> Did it get merged? There are several patches proposed in that thread,
>> but I do not see them being actually merged upstream.
>
> Mmm, that thread ends with me proposing a specific approach and Matt saying it
> sounds good (<https://list.orgmode.org/871r2ucuhz.fsf@gmail.com>, quoted below),
> but from there no further patches are provided (unless I missed something).
Reading through the linked email, I have a feeling that Matt expected you
to provide further feedback:
>> Anyway, I still feel that the earlier patch (before regex changes is the
>> right one). But, if you want me to revert the documentation removal from
>> the function I will.
May you followup on his query?
--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-09-13 13:14 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-10 19:03 Images in org-mode Colin Baxter
2022-09-10 19:27 ` Dominik Schrempf
2022-09-10 20:45 ` Mark Barton
2022-09-11 19:30 ` Colin Baxter
2022-09-11 13:48 ` Max Nikulin
2022-09-12 11:08 ` Ihor Radchenko
2022-09-12 12:02 ` Timothy
2022-09-13 13:14 ` Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).