[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML img tags

From: Lars Magne Ingebrigtsen
Subject: Re: HTML img tags
Date: Wed, 14 Dec 2016 10:39:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Hikaru Ichijyo <> 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:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]