emacs-devel
[Top][All Lists]
Advanced

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

Re: imagemagick format detection code


From: Thien-Thi Nguyen
Subject: Re: imagemagick format detection code
Date: Mon, 12 Aug 2013 19:43:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

() Lars Magne Ingebrigtsen <address@hidden>
() Mon, 12 Aug 2013 17:17:39 +0200

   Yes.  This will add to the general confusion in this area.

Another idea (that may or may not increase confusion) is to
use GNU libextractor:

 http://www.gnu.org/software/libextractor/

for image type (format) detection, and perhaps (w/ a SMOP) as an
additional "magic" for ‘magic-mode-alist’, something like:

 (EXTRACTOR-SPEC . FUNCTION)

where EXTRACTOR-SPEC is a non-string (otherwise it would be taken as
REGEXP) form that configures libextractor to DTRT.

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

Attachment: pgpODI1LSVB3T.pgp
Description: PGP signature


reply via email to

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