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: Mysterious gzipped images Date: Wed, 07 Aug 2013 00:20:16 +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 1375827647 2683 80.91.229.3 (6 Aug 2013 22:20:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Aug 2013 22:20:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 07 00:20: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 1V6pcT-0004Op-HD for ged-emacs-devel@m.gmane.org; Wed, 07 Aug 2013 00:20:45 +0200 Original-Received: from localhost ([::1]:60586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6pcS-00007Y-Tp for ged-emacs-devel@m.gmane.org; Tue, 06 Aug 2013 18:20:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6pcK-0008UP-6h for emacs-devel@gnu.org; Tue, 06 Aug 2013 18:20:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6pcB-0003UF-MQ for emacs-devel@gnu.org; Tue, 06 Aug 2013 18:20:36 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6pcB-0003Ty-Ci for emacs-devel@gnu.org; Tue, 06 Aug 2013 18:20:27 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V6pc8-0004DG-EK for emacs-devel@gnu.org; Wed, 07 Aug 2013 00:20:24 +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 ; Wed, 07 Aug 2013 00:20:24 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Aug 2013 00:20:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEXe2N1jRyxFMR9UOiJb oVNfQylaPyWbxJny7PFOZDKVX433AAACb0lEQVQ4jV2TMW/bMBCFWcCpOJpoGe9yUcBjQ5h7CwOB R8YgOxeCbubggsrGLVwjaNG/7TtKaeoebEj2d+/ueHcU3nmllFa+915pD+uO2qlPwjsXTGdsMBSO Sh+1etp77y5COXCYV3jUt6oDUDoKcTo9JvFmvxH0HsBFkQ+vc8yylCJFE+84G4CH4jBOIgspwF7k R416kFwNcIRzblKp9oETCR36mFKU4ho3jwmvstxxEaiKhhRFEUlerycYA1YoFYYlQnme2f4BUciM KuXzdJpnaM7zzMl9iIhbslgV1RhQF/lUQNfpBgQDwOWW69yOh/FHO7bza1UMrACqivOZFQCBjm9V XafTaovCDOyPD0K143j40o4MtHcDp4Y1b6CGwgDjkvu/UKRUSmkoKZXN+zkAepTMiibKzY0CLUmL yaaWO02LQukg13JzPfm0hoLiHdyE+kdxkxzL8LgmSefa9bXtdY96/3ejAn/raDV+u+X/4H1PfbBE fVWoz7xscaMvbbU9EbkKtpxeNIqXmLDHROZYwQ4zzwzY3+xb05pvKxAix0bdV2D2xvYIhWWvoUqj dM3wYIztVrCMQ6k9u5sH89X84lBuy/tcXrR+Mi2Apd5xudptCy96Vg5REMmS18s5tllyeuV815Ex ZEn52pJd5lFlfW9aLhUncYtitzSX7561tjPmYvoKftbVZRDIWMQi794VQjIwbBbdFHoBuAesIMvV QsHJndqJBu1tNCIR7dFIooCrhiGl77i8GAZAZ5lSJ7QLPD84g/BfaHwFGBvHhBscKrDoYQ8FVwh9 z7RDYhwDSS4M8GBXTDtQv0zQP/0B42ZLKFQKOKAAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Matthew Herbert's _The End of Silence_: "Part One" User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:7Z3LtARc9CAT6z+4YVpDtoxBBkc= 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:162453 Archived-At: I was looking at duckduckgo in eww, and I noticed that none of the images displayed correctly in the search results. And then I noticed the following error message: ImageMagick error: no decode delegate for this image format `' @ error/constitute.c/ReadImage/544 [3 times] So. Downloading one of the images: https://icons.duckduckgo.com/i/a-z-animals.com.ico [larsi@stories /tmp]$ curl -O https://icons.duckduckgo.com/i/a-z-animals.com.ico [larsi@stories /tmp]$ file a-z-animals.com.ico a-z-animals.com.ico: gzip compressed data, max compression [larsi@stories /tmp]$ mv a-z-animals.com.ico a-z-animals.com.ico.gz [larsi@stories /tmp]$ gunzip a-z-animals.com.ico.gz [larsi@stories /tmp]$ file a-z-animals.com.ico a-z-animals.com.ico: MS Windows icon resource - 1 icon So it's a gzipped image! After unzipping Emacs understands it perfectly. Firefox does too, so I think Emacs should understand this weird method of encoding images. But how? Should `create-image' see whether it looks like a gzipped file before passing it on? No, that's too grody. Totally. Hm... perhaps this is something that url.el should handle? The HTTP headers from the server says: Content-Type: image/x-icon Content-Encoding: gzip So... uhm... should url undo the Content-Encoding before returning the buffer? -- (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