From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: HASM Newsgroups: gmane.emacs.help Subject: Re: HTML img tags Date: Mon, 12 Dec 2016 07:46:17 -0800 Organization: A noiseless patient Spider Message-ID: <87bmwhrvzq.fsf@127.0.0.1> References: <8xxoa0johe9.fsf@village.keycorner.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1481561186 7871 195.159.176.226 (12 Dec 2016 16:46:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Dec 2016 16:46:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 12 17:46:21 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGTk3-0000ZX-Pa for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Dec 2016 17:46:19 +0100 Original-Received: from localhost ([::1]:58649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGTk4-0006xU-J7 for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Dec 2016 11:46:20 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.datemas.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-Injection-Info: mx02.eternal-september.org; posting-host="a9e5c7ab064aabb08adca91660fd0cfe"; logging-data="19599"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wF4eKWOIwCI2l95qEtWneMh5MznaxoTM=" Cancel-Lock: sha1:DbG/vyEkAv6l02KuZbnPfekPG6w= sha1:TIYKIOrnhhfFmpvlRmtmar2Km6U= Original-Xref: usenet.stanford.edu gnu.emacs.help:219024 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111931 Archived-At: > 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? One needs to parse the headers of a lot of different file formats, so not trivial to do all images types. For the most common ones, on unix you can call "file " and parse the output. -- HASM