From: Lars Magne Ingebrigtsen <lmi@gnus.org>
To: help-gnu-emacs@gnu.org
Subject: Re: HTML img tags
Date: Wed, 14 Dec 2016 10:39:33 +0100 [thread overview]
Message-ID: <m3r35a3l4a.fsf@gnus.org> (raw)
In-Reply-To: 8xxoa0johe9.fsf@village.keycorner.org
Hikaru Ichijyo <ichijyo@macross.sdf.jp> writes:
> Is there a mode, or some bit of Lisp code I can put in ~/.emacs, that
> will let Emacs guess the width= and height= attributes of an image file
> from the image itself when I create an img tag in HTML? I realize
> there's probably no way for Emacs to do that without calling external
> programs as a subprocess
I don't know of any such mode, but there's no need to call external
programs. Just do a `create-image' on the image and then call
`image-size' on the result.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2016-12-14 9:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-10 16:53 HTML img tags Hikaru Ichijyo
2016-12-10 17:55 ` Eli Zaretskii
2016-12-12 15:46 ` HASM
2016-12-14 4:44 ` James K. Lowden
2016-12-14 9:05 ` B.V. Raghav
2016-12-14 9:39 ` Lars Magne Ingebrigtsen [this message]
2016-12-14 9:51 ` Konstantin Shakhnov
2016-12-14 10:48 ` tomas
2016-12-14 13:27 ` Konstantin Shakhnov
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=m3r35a3l4a.fsf@gnus.org \
--to=lmi@gnus.org \
--cc=help-gnu-emacs@gnu.org \
/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.