From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: imagemagick format detection code Date: Sun, 11 Aug 2013 23:14:38 +0200 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376255703 30326 80.91.229.3 (11 Aug 2013 21:15:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Aug 2013 21:15:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 11 23:15:05 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V8cyf-0000nr-9i for ged-emacs-devel@m.gmane.org; Sun, 11 Aug 2013 23:15:05 +0200 Original-Received: from localhost ([::1]:41959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8cye-0004oy-Qj for ged-emacs-devel@m.gmane.org; Sun, 11 Aug 2013 17:15:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8cyV-0004nS-Bx for emacs-devel@gnu.org; Sun, 11 Aug 2013 17:15:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8cyP-0000Kz-7l for emacs-devel@gnu.org; Sun, 11 Aug 2013 17:14:55 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8cyP-0000Kk-16 for emacs-devel@gnu.org; Sun, 11 Aug 2013 17:14:49 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V8cyN-0000aU-QM for emacs-devel@gnu.org; Sun, 11 Aug 2013 23:14:47 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Aug 2013 23:14:47 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Aug 2013 23:14:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEW5ur4HAgUJBgpHR1AJ BQmKi5fX1tWipK4FAQMOCw9ARDtWAAACW0lEQVQ4jWXTQW/TMBQHcEuorXZ8JJPcY11XIje6bkCP TlypvTEyS8stEmIS56madszowdyIyWD+trznJG2A11t/fv/YzwmrFp7qLRvf9bXCWrN60ag0GUJJ Cx2zi1qlAoH18CVEMLWoIU6T/2G2WEKsCfqsz33UEiB09C1fW1Ab6kgHcNbCDAFbBlB0UQEEwXgA PkRBHKDrWXtHINuO9x8nbDJhI1SXhI4QFfsrk5vR3lA5KU4d6RX+08KVS2VCB9xcYwfCCH+hvBBt 1LWt2u2ycVnelffeCUdR57cVPuPdcehnXtBD2HZzo3RygvLRCy0RePYpTnXSwxjPJyVmMTEvaLq/ jh1rhJ3bsW1WgBR/gfZaTRlkhXbC/8CQclyGicjUNxiVFQLhN+tq4p3SWmNUlHuChw5GXgCoeMp0 lAtB0MkrJ2cxxDvmojwJHW1N7p2yOLwp49iB++7h4VFyW3EIUYnW4gSabgFP7qNcgxbPPeDFNgqq Ke1K7aRc9HChADDsO0uj/LWM4yNcAlTc2ieKamAAF7jeEuCuVB3rHvYNBRGIyNRKwab92xjFufUh KjP1DFrAC88BrF2FqMw0MIMoLB+CyIxvdJyF9Qjc8ioncBiFs4naV8cUOI8q54cD7srgSZusgxua 055XBzyHWVqI5x3ga8mjPbcHJjOCY9QHvKUM4Qnv3FxWFr71YC12vGnPscQd9h0v1sL5wws+YztH 4Lbv2OKcnk2NIBDsEXIa4FRajrtq4fsAaLwxg7m5xXH+C9jx09ycoLChKoJktaYPZRVqTd9lQl/U H/jJdvf94SS6AAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Arto Lindsay's _Invoke_: "In The City That Reads" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:V/G8729+EG3E7GhaxffGQqpgDVc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162585 Archived-At: duckduckgo outputs images as gzipped .ico files, and eww can now almost display them. But! If I create the image from the data in the buffer, I just get a square which imagemagick uses to tell us "nuh-huh; don't understand": (with-temp-buffer (set-buffer-multibyte nil) (insert-file-contents-literally "/tmp/b.ico") (let ((image (create-image (buffer-string) 'imagemagick t))) (pop-to-buffer "*image*") (insert-image image "*"))) However, if I create the image with (create-image "/tmp/b.ico" 'imagemagick) then it works fine. Does anybody have any, er, insights to offer here? -- (domestic pets only, the antidote for overdose, milk.) No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php and http://lars.ingebrigtsen.no/2013/08/twenty-years-of-september.html