Tag: ImageMagick的

ImageMagick:识别无法识别XWD图像

我的目标是能够截取所有菜单的屏幕截图,无论工具提示或X窗口抓取下拉菜单,包括Ubuntu中的链轮菜单,例如,像这样,并在另一个绘图工具(如Shutter)中注释它们: 我在Shutter之外做这个的方式(因为它实际上不会抓住那个菜单,即使它正在宣传它),使用xwd来抓取整个根窗口,将其转换为PNG文件,将其加载到Shutter中然后将其裁剪掉。 这样做非常浪费时间,但直到最近才一直在努力。 在Ubuntu上: drunkard@norehab:~$ lsb_release -r -i Distributor ID: Ubuntu Release: 17.04 我使用xwd拍摄完整的截图: drunkard@norehab:~$ xwd -root -out /tmp/xwd.tmp.6821 drunkard@norehab:~$ file /tmp/xwd.tmp.6821 /tmp/xwd.tmp.6821: XWD X Window Dump image data, “xwdump”, 3840x1215x24 从XWD转换为PNG格式时遇到错误: drunkard@norehab:~$ convert /tmp/xwd.tmp.6821 /home/drunkard/screenshot.2017-10-07.08-13-55.PDT.png convert-im6.q16: no decode delegate for this image format `6821′ @ error/constitute.c/ReadImage/504. convert-im6.q16: no images defined `/home/drunkard/screenshot.2017-10-07.08-13-55.PDT.png’ @ error/convert.c/ConvertImageCommand/3258. 我有这个版本的识别: […]

RMagick安装问题

在Ubuntu 10.0.4上尝试sudo apt-get install libmagick9-dev ( 根据此要求 )之后,由于以下依赖性问题,我无法安装RMagick: Note, selecting libmagickwand-dev instead of libmagick9-dev Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following […]

将图像转换为PDF格式

我从Google图书中保存了多张图片。 我想将它们转换为单个pdf文件,我需要一些输入。 以下两个图像(一个png和一个jpeg)是两个连续页面。 第一页(png) 第二页(jpeg) 我将它们保存在我的系统中。 我使用下面的命令将它们转换为pdf convert books.png books.jpeg combined.pdf 然而,合并.pdf并没有给我预期的结果,而不是两者的结合。 我也尝试制作单独的pdf文件,然后使用pdftk组合它们,没有运气 convert books.png book1.pdf convert books.jpeg book2.pdf pdftk book1.pdf book2.pdf cat output combined.pdf