From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help Subject: Re: How do I make windows emacs display PNG and JPEG images? Date: Wed, 31 Dec 2014 12:20:49 +0100 Message-ID: <86h9wcxdym.fsf@dod.no> References: <86vbkugabs.fsf@dod.no> <83mw66jvms.fsf@gnu.org> <86tx0defza.fsf@dod.no> <83ppb1b0dm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1420024894 29735 80.91.229.3 (31 Dec 2014 11:21:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2014 11:21:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 31 12:21:28 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Y6HLE-00005b-19 for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2014 12:21:28 +0100 Original-Received: from localhost ([::1]:39800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6HLD-0002sO-6s for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2014 06:21:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6HKz-0002sI-5p for help-gnu-emacs@gnu.org; Wed, 31 Dec 2014 06:21:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y6HKu-0001hs-A1 for help-gnu-emacs@gnu.org; Wed, 31 Dec 2014 06:21:13 -0500 Original-Received: from rainey.bang.priv.no ([212.110.185.190]:32972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6HKu-0001go-4U for help-gnu-emacs@gnu.org; Wed, 31 Dec 2014 06:21:08 -0500 In-Reply-To: <83ppb1b0dm.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 30 Dec 2014 17:52:53 +0200") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4 (windows-nt) X-SA-Exim-Connect-IP: 84.208.248.210 X-SA-Exim-Rcpt-To: too long (recipient list exceeded maximum allowed size of 8 bytes) X-SA-Exim-Mail-From: sb@dod.no X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:57:07 +0000) X-SA-Exim-Scanned: Yes (on rainey.bang.priv.no) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.110.185.190 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101786 Archived-At: >>>>> Eli Zaretskii : >> libpng-version's value is 10403 >> No match for libjpeg-version. > Right, that's the problem. You need libpng14-14.dll or libpng14.dll > for PNG, and jpeg62.dll for JPEG. See w32-win.el for the full list. I couldn't find old versions of the DLLs somewhere on the ezwinports sites? (I looked for an "Old Releases" folder that sourceforge sites sometimes have, but couldn't find it). So what I did was to install emacs 24.4 (emacs-24.4-bin-i686-pc-mingw32) from here: http://ftp.gnu.org/pub/gnu/emacs/windows/ For 24.4 from above: libpng-version's value is 10612 libjpeg-version's value is 90 Then I copied in the entire bin directory contents of the unzips pf these ezwinports packages into the emacs-24.4-bin-i686-pc-mingw32/bin directory: gnutls-3.3.11-w32-bin.zipgnutls-3.3.11-w32-bin.zip jpeg-v9a-w32-bin.zip libpng-1.6.12-w32-bin.zip libxml2-2.7.8-w32-bin.zip And now PNGs display fine inlined in Gnus, and JPEGs probably will as well, when I encounter them, because: (image-type-available-p 'jpeg) (image-type-available-p 'png) both returns t. Thanks, Eli! [snip!] >>> (There's some explanation of this near line 200 of w32-win.el.) >> No w32-win.el in the lisp directory. >> locate-library says: >> No library w32-win in search path >> No library w32-win.el in search path > It's in lisp/term/, where all the *-win.el files are kept. Or maybe > you have a compressed w32-win.el.gz there. Found it as lisp/term/w32-win.el on 24.3 (ie. uncompressed) and as share/emacs/24.4/lisp/term/w32-win.el (also uncompressed) on 24.4. Thanks!