Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I believe I've seen one or more utilities, possibly command-line or Applescript, which will take a string and create, for example, an image containing that text with the specified font size, etc.

I can't find it again. Does anyone have a hint?

share|improve this question

ImageMagick doesn't come with OS X, but it should though.

convert -background skyblue -border 10 -bordercolor skyblue -fill 'hsb(10%,50%,50%)' -font /Library/Fonts/Arial\ Narrow.ttf -pointsize 24 label:"some text" output.png

If you have to specify some more complex styles, using webkit2png might be easier.

echo "<style>em {padding:5px}</style><em>Test</em>" > test.html
webkit2png test.html --clipwidth=55 --clipheight=35 --scale 1 -C
share|improve this answer
You should save temporary files to /tmp rather than the desktop, just in case rm fails for some reason and the user sees a new file on their desktop. – kirb Sep 26 '11 at 10:20
Thanks. This product seems to create a screen shot of a webpage, if I understand correctly, a bit of a long way around. I really think there's a simple utility that does text-to-jpg (say) directly. – hen3ry Sep 27 '11 at 0:08
Right, agreed, but in this case I'm looking for just the bare bones, being able to specify the font name and size, period. – hen3ry Sep 28 '11 at 1:19

Image Magick will do what you want, I believe. It's not built-in.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.