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

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

问题描述

我想在 OS X 上的图像上覆盖文本,最好不安装其他软件,这样,作为系统管理员,我可以一眼就知道机器是最新的,以一种易于编写脚本和易于修改的方式,并且可以运行没有图形用户界面访问.[能够叠加图像或应用变色效果将是一个奖励.]

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、Bash;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.

我将继续浏览我计算机上/Developer 文件夹中的示例,并且我对如何在 Cocoa 中完成并将其转换为 PyObjC 有了部分想法.我决定必须部署 ImageMagick,但在我的测试中,我遇到了一个臭名昭著的总线错误,如果我可以做我需要做的事情,我宁愿不必编译 ImageMagick 或 GraphicsMagick 及其所有依赖项——盒子.[也就是说,我会考虑安装额外的组件,但如果有一些可以在 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].

推荐答案

CocoaMagicRMagick(Ruby 与 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天全站免登陆