From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 20 15:18:38 2016 Received: (at submit) by debbugs.gnu.org; 20 Mar 2016 19:18:38 +0000 Received: from localhost ([127.0.0.1]:55831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahis1-0003eb-Rg for submit@debbugs.gnu.org; Sun, 20 Mar 2016 15:18:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55851) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahis1-0003eD-0P for submit@debbugs.gnu.org; Sun, 20 Mar 2016 15:18:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahiru-0007cC-A5 for submit@debbugs.gnu.org; Sun, 20 Mar 2016 15:18:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahiru-0007c8-6f for submit@debbugs.gnu.org; Sun, 20 Mar 2016 15:18:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahirs-0003O8-Ha for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 15:18:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahirp-0007ba-A5 for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 15:18:28 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:46350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahiro-0007bT-Vj for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 15:18:25 -0400 Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1ahirl-0004m7-1w for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 20:18:23 +0100 From: Lars Magne Ingebrigtsen To: bug-gnu-emacs@gnu.org Subject: 25.1.50; Wishlist: image mode should have a command to display (and edit?) exif data Date: Sun, 20 Mar 2016 20:18:20 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I had a peek at the exif data format, and it's quite simple. Parsing it in Lisp shouldn't be too much work. But does anybody know whether the ImageMagick library already supports digging out this information? I googled for five minutes, and all I could find were command line examples, but not anything from the C level... Anybody know? In GNU Emacs 25.1.50.32 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2016-03-20 built on stories Repository revision: 565df7265dd73b4812fcb02cd1663fce4dc40be7 Windowing system distributor 'The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux 7.9 (wheezy) Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US locale-coding-system: iso-latin-1-unix Major mode: Group Minor modes in effect: gnus-agent-group-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t gnus-topic-mode: t gnus-undo-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Recent messages: Wrote /home/larsi/Mail/ding/85289 nnml: Reading incoming mail (1 new)...done Reading active file via nnml...done Reading active file via nnmh...done Reading active file from archive via nnfolder...done Reading active file from archive via nnfolder...done Reading active file via nndraft...done Reading active file via nnmbox...done Checking new news...done Making completion list... Load-path shadows: /home/larsi/src/clock.el/clock hides /home/larsi/lisp/clock /home/larsi/src/cddb.el/expect hides /home/larsi/lisp/expect /home/larsi/src/pvr.el/pvr hides /home/larsi/lisp/pvr ~/pgnus/contrib/vcard hides /home/larsi/lisp/vcard /home/larsi/src/cddb.el/captitle hides /home/larsi/lisp/captitle ~/lisp/zenirc-2.112/src/zenirc-example hides /home/larsi/lisp/zenirc-example /home/larsi/lisp/dom hides /home/larsi/src/emacs/trunk/lisp/dom ~/pgnus/contrib/compface hides /home/larsi/src/emacs/trunk/lisp/image/compface Features: (shadow emacsbug make-mode vc-annotate dired-aux pulse shell pcomplete comint etags xref project cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs eieio-opt speedbar sb-image ezimage dframe find-func ffap thingatpt pp mailalias smtpmail sendmail ecomplete sgml-mode log-edit ring pcvs-util vc-bzr vc-src vc-sccs vc-svn vc-rcs vc-dir ewoc bug-reference whitespace edebug url-file url-dired vc-git diff-mode map flow-fill crm misearch multi-isearch shr-color color vc vc-dispatcher copyright vc-cvs eww gnus-html url-queue help-fns url-cache gnus-picon sort gnus-cite smiley ansi-color mm-archive gnus-async gnus-dup qp gnus-ml gmane spam-gmane dns mm-url disp-table gnus-fun gnus-mdrtn pop3 nndoc nnmbox nndraft utf-7 gnus-topic nnmh nnml nnfolder network-stream nsm starttls nnir spam-report spam spam-stat gnus-uu yenc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message format-spec rfc822 mml mml-sec epa epg mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs mail-utils movie mkv shr svg imdb dom pvr debug debbugs-gnu easy-mmode derived debbugs soap-client mm-decode mm-bodies mm-encode url-http tls gnutls url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap warnings rng-xsd rng-dt rng-util xsd-regexp xml ido seq flyspell ispell benchmark w3m browse-url doc-view subr-x dired dired-loaddefs image-mode timezone w3m-hist w3m-fb w3m-ems wid-edit w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util add-log mail-extr mm-util mail-prsvr jka-compr cl finder-inf package epg-config url-handlers url-parse auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra help-mode easymenu cconv eieio-core cl-macs gv eieio-loaddefs cl-loaddefs pcase cl-lib password-cache url-vars time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 6264828 492654) (symbols 48 176174 292) (miscs 40 969 5352) (strings 32 462173 64176) (string-bytes 1 31327084) (vectors 16 54235) (vector-slots 8 1869748 141531) (floats 8 8721 9060) (intervals 56 1422839 22127) (buffers 976 129) (heap 1024 461366 226787)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 21 09:37:13 2019 Received: (at 23070) by debbugs.gnu.org; 21 Sep 2019 13:37:13 +0000 Received: from localhost ([127.0.0.1]:59326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBfZY-0002Oi-UF for submit@debbugs.gnu.org; Sat, 21 Sep 2019 09:37:13 -0400 Received: from quimby.gnus.org ([80.91.231.51]:54792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBfZX-0002Oa-Ba for 23070@debbugs.gnu.org; Sat, 21 Sep 2019 09:37:11 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBfZR-0002ec-Oa for 23070@debbugs.gnu.org; Sat, 21 Sep 2019 15:37:09 +0200 From: Lars Ingebrigtsen To: 23070@debbugs.gnu.org Subject: Re: bug#23070: 25.1.50; Wishlist: image mode should have a command to display (and edit?) exif data References: Date: Sat, 21 Sep 2019 15:37:00 +0200 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 20 Mar 2016 20:18:20 +0100") Message-ID: <878sqhydmr.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Magne Ingebrigtsen writes: > I had a peek at the exif data format, and it's quite simple. Parsing it > in Lisp shouldn't be too much work. And I've implemented this now, which means that ImageMagick-less Emacs is now kinda back up to feature parity with ImageMagick: That is, we can look at the rotation in the exif data and display accord [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 23070 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Magne Ingebrigtsen writes: > I had a peek at the exif data format, and it's quite simple. Parsing it > in Lisp shouldn't be too much work. And I've implemented this now, which means that ImageMagick-less Emacs is now kinda back up to feature parity with ImageMagick: That is, we can look at the rotation in the exif data and display accordingly. (exif-parse "~/pics/redslur/P1410570.JPG") => ((:tag 271 :format 2 :format-type ascii :value "Panasonic") (:tag 272 :format 2 :format-type ascii :value "DMC-GH4") (:tag 274 :format 3 :format-type short :value 1) (:tag 282 :format 5 :format-type rational :value (180 . 1)) (:tag 283 :format 5 :format-type rational :value (180 . 1)) (:tag 296 :format 3 :format-type short :value 2) (:tag 305 :format 2 :format-type ascii :value "Ver.2.0 ") (:tag 306 :format 2 :format-type ascii :value "2019:09:18 01:18:40") (:tag 531 :format 3 :format-type short :value 2) ...) But... I'm not sure to what degree to support the various tags. I mean, it would be nice to display them and stuff, and editing them would also be nice, but... perhaps that should be left to an add-on package? So have a basic exif.el in Emacs core (to allow images to be displayed better), and if somebody wants to edit this stuff, it can be an ELPA package? Any opinions? The other thing I'm wondering about is whether anybody knows of a source for tag names that has a license that allows using the data in Emacs. For instance, I don't see a license here, so I'm guessing copying the table won't be ... good? https://www.exiv2.org/tags.html Having some version of such a table is necessary for transforming the cryptic numbers up there from (for instance) 274 to `orientation' or something. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 22 08:24:42 2019 Received: (at 23070) by debbugs.gnu.org; 22 Sep 2019 12:24:42 +0000 Received: from localhost ([127.0.0.1]:33460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iC0uw-0002rL-8E for submit@debbugs.gnu.org; Sun, 22 Sep 2019 08:24:42 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iC0uu-0002rB-9e for 23070@debbugs.gnu.org; Sun, 22 Sep 2019 08:24:41 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iC0uq-0003go-Gt for 23070@debbugs.gnu.org; Sun, 22 Sep 2019 14:24:38 +0200 From: Lars Ingebrigtsen To: 23070@debbugs.gnu.org Subject: Re: bug#23070: 25.1.50; Wishlist: image mode should have a command to display (and edit?) exif data References: <878sqhydmr.fsf@gnus.org> Date: Sun, 22 Sep 2019 14:24:36 +0200 In-Reply-To: <878sqhydmr.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 21 Sep 2019 15:37:00 +0200") Message-ID: <87v9tkwmbf.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: I've now made image-mode use the exif data to automatically rotate images. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 23070 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I've now made image-mode use the exif data to automatically rotate images. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 22 08:24:47 2019 Received: (at control) by debbugs.gnu.org; 22 Sep 2019 12:24:47 +0000 Received: from localhost ([127.0.0.1]:33463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iC0v1-0002rg-Iy for submit@debbugs.gnu.org; Sun, 22 Sep 2019 08:24:47 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iC0v0-0002rZ-1o for control@debbugs.gnu.org; Sun, 22 Sep 2019 08:24:46 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iC0ux-0003gy-A4 for control@debbugs.gnu.org; Sun, 22 Sep 2019 14:24:45 +0200 Date: Sun, 22 Sep 2019 14:24:42 +0200 Message-Id: <87tv94wmb9.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #23070 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 23070 fixed close 23070 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 23070 fixed close 23070 27.1 quit From unknown Sun Jun 22 00:09:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 21 Oct 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator