Search code examples
emacspngzlibemacs24libpng

PNG Support for Emacs


I was trying to add PNG support to my Emacs installation to display png files. Though I found the following and some other links online, I'm still not able to view png files.

Emacs under Windows and PNG files

I have copied libpng and zlib1 dll files in my emacs/bin directory and have made sure that they are not outdated but the

(image-type-available-p 'png)

returns nil. I would like to know if I'm missing something.

I am using Emacs 24.4 on Windows 8.1 64-bit.

Any help is appreciated. Thanks.


Solution

  • From https://ftp.gnu.org/gnu/emacs/windows/

    Emacs can also support some other image formats with appropriate libraries. These libraries are all available on the following sites:

    1. http://sourceforge.net/projects/ezwinports/files/ -- leaner, more up-to-date builds, only for 32-bit Emacs
    2. http://www.gtk.org/download/win32.php

      http://www.gtk.org/download/win64.php -- the GTK project site; offers much fatter builds, but includes 64-bit DLLs (from the 2nd URL)