The latest version of Emacs allows you to open up images, just like text. See:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvINGmQL-CJ7q8xZuSNzAATQDRIGHTYtp2CZ6zokwnLTrD3F17U8LN75tdXTQw7LAfeN3MW2ymCDGwW3m1Hee8p1pELqEeM_lSaQqR6lUWt3Xz_NPL0bYGfKfjDVhA8Bl9e28YiQ/s400/emacs-image.jpg)
However, when I installed the latest version of GNU emacs, the images just loaded as gibberish.
You can check to see if your emacs has image support by placing the following in the *scratch* buffer and eval'ing it:
(image-type-available-p 'png) (image-type-available-p 'jpeg)
For me, the above returned nil. I knew I needed to install the extra image libraries, but which ones and where to get them?
After a bit of investigation, it turned out to be not all that tricky. I just headed over to the GTK+ download site and grabbed the following packages:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP2KK4gQAPvEJjUJXcxgjyOOgoxTJ5S5MndHDgizh4CsXHSD77SQlOMevH9gyRQWbNb4Jh4AOgzo9LZ3MBwXZwCwaYrXprDTfdZ0HR2HCCsGqfoPLcCtt8_k0-BusG6kEyVARGiA/s400/what-to-download.jpg)
I unpacked these zip files. I then took the .dll files and dropped them into C:\Windows\System32. That's probably not the best place for them, but being a Unix geek stuck on Windows, it worked for me.
Now, there's one more catch - emacs is looking for a particularly named .dll files. So, make sure you name them as:
jpeg62.dll giflib4.dll libpng12d.dll
These names are defined in the varaiable image-library-alist.
I kept putting off setting this up because I kept wondering which files to download and where to stash them. In the end, it was quite easy to do. So do it, and have a more functional emacs. And who doesn't want that?
Where did you get the giflib dll?
ReplyDeleteGive libungif a shot: http://gnuwin32.sourceforge.net/packages/libungif.htm
ReplyDelete-Ben