注释使用工具图像内置于OS X [英] Annotate images using tools built into OS X

查看:159
本文介绍了注释使用工具图像内置于OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要叠加在OS X上,$ P $图片中的文字pferably无需安装额外的软件,这样一来,作为一个系统管理员,我可以的一目了然知道该机器是最新的最新,在某种程度上,很容易编写脚本并易于修改,并且可以在不GUI访问运行。 [如果能够叠加图像或将颜色变化的影响将是一个奖金。]

I want to overlay text on images on OS X, preferably without installing additional software, so that, as a sysadmin, I can know at a glance that machines are up-to-date, in a way that is easily scriptable and easily modifiable, and can run without GUI access. [Being able to overlay images or apply color-changing effects would be a bonus.]

的Mac OS X Leopard的带有一吨的东西内置:Perl,Python和Ruby的,TCL / TK,击; wxWidgets的,有些Quartz集成,甚至为Python和Ruby的Objective-C集成。必须有几个很好的方法可以做到这一点,如果我在这些系统中唯一精通。

Mac OS X Leopard comes with a ton of stuff built-in: Perl, Python, Ruby, Tcl/Tk, Bash; wxWidgets, some Quartz integration, and even Objective-C integration for Python and Ruby. There must be several good ways to do this, if I were only versed in these systems.

我继续通过在我的电脑上/开发者文件夹中的例子,我有如何这可能可可完成并转换为PyObjC的部分想法。我决定,我将不得不部署ImageMagick的,但在我的测试中,我遇到了一个臭名昭著的总线错误,并且将preFER不要有编译的ImageMagick或GraphicsMagick工具与所有的依赖关系,如果我可以做什么,我需要出去-of即装即用。 [这么说,我会考虑安装其他组件,但它是一个巨大的胜利有东西会在股票上安装OS X的工作。

I'm continuing to go through the examples in the /Developer folder on my computer, and I have got a partial idea of how this might be done in Cocoa and converted to PyObjC. I decided I would have to deploy ImageMagick, but in my testing, I am running into an infamous bus error, and would prefer not to have to compile ImageMagick or GraphicsMagick with all its dependancies if I can do what I need to out-of-the-box. [That said, I would consider installing additional components, but it would be a big win to have something that would work on a stock install of OS X].

推荐答案

CocoaMagic 是一个单一文件替换为 RMagick (与ImageMagick的或GraphicsMagick工具红宝石一体化大型零件)。它应该是可用作在自己的权利图书馆,或者通过附加的东西到脚本的底部。

CocoaMagic is a single-file replacement for large parts of RMagick (Ruby integration with ImageMagick or GraphicsMagick). It should be useable as a library in its own right, or by appending things to the bottom of the script.

这篇关于注释使用工具图像内置于OS X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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