From: Alan Third <alan@idiocy.org>
To: Manuel Giraud <manuel@ledu-giraud.fr>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Images :scale and :width/:height relation
Date: Sun, 3 Sep 2023 17:40:43 +0100 [thread overview]
Message-ID: <ZPS3C1dKJLIaOXyE@idiocy.org> (raw)
In-Reply-To: <8734zvcr94.fsf@ledu-giraud.fr>
On Sun, Sep 03, 2023 at 03:37:11PM +0200, Manuel Giraud wrote:
> > IIRC the likes of eww will actively load an image and then get the
> > size and set the scale accordingly. Perhaps that sort of behaviour
> > should be made available generally.
>
> I should have a look their then. But Emacs does not have a way of
> asking "what are the dimensions of this image" without loading it into
> its cache?
No, afaik the only way to get an image's native dimensions is to load
it with no scale or width/height and then check the resulting image.
--
Alan Third
next prev parent reply other threads:[~2023-09-03 16:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-01 10:46 Images :scale and :width/:height relation Manuel Giraud via Emacs development discussions.
2023-09-01 20:57 ` Alan Third
2023-09-03 13:37 ` Manuel Giraud via Emacs development discussions.
2023-09-03 16:40 ` Alan Third [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-09-01 9:54 Manuel Giraud
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZPS3C1dKJLIaOXyE@idiocy.org \
--to=alan@idiocy.org \
--cc=emacs-devel@gnu.org \
--cc=manuel@ledu-giraud.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.