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: Re: imagemagick format detection code Date: Sun, 11 Aug 2013 23:27:19 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376256463 4715 80.91.229.3 (11 Aug 2013 21:27:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Aug 2013 21:27:43 +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:27:46 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 1V8dAv-0003I7-JN for ged-emacs-devel@m.gmane.org; Sun, 11 Aug 2013 23:27:45 +0200 Original-Received: from localhost ([::1]:44544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8dAv-0007ef-2x for ged-emacs-devel@m.gmane.org; Sun, 11 Aug 2013 17:27:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8dAm-0007eX-3e for emacs-devel@gnu.org; Sun, 11 Aug 2013 17:27:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8dAf-000483-UF for emacs-devel@gnu.org; Sun, 11 Aug 2013 17:27:36 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8dAf-00047x-Np for emacs-devel@gnu.org; Sun, 11 Aug 2013 17:27:29 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V8dAd-00033l-Rk for emacs-devel@gnu.org; Sun, 11 Aug 2013 23:27:27 +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:27:27 +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:27:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 19 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_: "Clemency" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:/H9j4Xxe3upocNAhUPaFotVqLwE= 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:162586 Archived-At: This is apparently a known bug -- ImageMagick isn't able to guess that something is an ico file, so it needs "help" from the file name. So one could say something like MagickSetFilename(wand, "ico:favicon.ico"); But then we'd need to keep an alist of MIME types to suffixes like Content-Type: image/x-icon and feed that into `create-image' (er... ":guessed-suffix"?) and then set it with that function. Meh. -- (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