unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: help-gnu-emacs@gnu.org
Subject: Re: How do I make windows emacs display PNG and JPEG images?
Date: Wed, 31 Dec 2014 12:20:49 +0100	[thread overview]
Message-ID: <86h9wcxdym.fsf@dod.no> (raw)
In-Reply-To: <83ppb1b0dm.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 30 Dec 2014 17:52:53 +0200")

>>>>> Eli Zaretskii <eliz@gnu.org>:

>> 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!



  reply	other threads:[~2014-12-31 11:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-29  7:54 How do I make windows emacs display PNG and JPEG images? Steinar Bang
2014-12-29 15:58 ` Eli Zaretskii
2014-12-30  7:47   ` Steinar Bang
2014-12-30 15:52     ` Eli Zaretskii
2014-12-31 11:20       ` Steinar Bang [this message]
2014-12-31 16:27         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h9wcxdym.fsf@dod.no \
    --to=sb@dod.no \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).