Windows下的Emacs和PNG文件 [英] Emacs under Windows and PNG files

查看:151
本文介绍了Windows下的Emacs和PNG文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都有任何指针,让PNG图像显示在Emacs 23 Win32?..我已经安装了gnuwin32的一些工具,包括libpng和zlib; C:\Program Files\GnuWin32\bin在路径中。 JPG文件开始工作,但不是PNG。我很感激任何提示,让这个工作。



编辑:PNG缩略图实际上显示正常(例如通过C-t C-t)。但是,打开它们失败(在基本模式下打开垃圾,Mx映像模式说无效映像规范)。

解决方案

您必须将这些DLL中的一个libpng12d.dlllibpng12.dlllibpng.dlllibpng13d.dlllibpng13.dll复制到您的emacs-23.1 / bin /目录中。它们需要您必须复制的zlib1.dll。我为jpeg62.dll和giflib4.dll做了同样的事情,现在我的emacs支持jpg,gif和png文件。由于某种原因,如果我只是将这些dll放在路径中,它不起作用。



您可以检查(image-type-available-p' png)以查看是否支持png。将图像类型映射到支持它的dll列表


Would anyone have any pointers on getting PNG images to display in Emacs 23 under Win32?.. I have installed the gnuwin32 set of utilities, including libpng and zlib; C:\Program Files\GnuWin32\bin is in path. JPG files started working but not PNGs. I'd appreciate any hints on getting this to work.

EDIT: PNG thumbnails actually display fine (e.g. in dired via C-t C-t). However, opening them fails (opens as garbage in fundamental mode, and M-x image-mode says "invalid image specification").

解决方案

You have to copy one of these dlls "libpng12d.dll" "libpng12.dll" "libpng.dll" "libpng13d.dll" "libpng13.dll" to your emacs-23.1/bin/ directory. They require zlib1.dll which you have to copy as well. I did the same thing for jpeg62.dll and giflib4.dll and now my emacs supports jpg, gif and png files. For some reason it does not work if I simply put these dlls in the path.

You can check (image-type-available-p 'png) to see if png is supported. image-library-alist maps image type to a list of dlls which support it.

这篇关于Windows下的Emacs和PNG文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆