• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Create a .jpg from text...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create a .jpg from text...


  • Subject: Re: Create a .jpg from text...
  • From: Doug McNutt <email@hidden>
  • Date: Tue, 15 Feb 2005 11:12:58 -0700

From:  <http://www.robsworld.org/pbmtopng.html>

echo my_text |  pbmtext |  pnmcrop | pnmpad -white - right - 2 - left 2 > somefile

>The 'echo' command is a common unix command, found on virtually any machine running a flavor of Unix. You may need to download, compile, or install the next three piped commands (pbmtext, pnmcrop, pnmpad). The output is redirected to a named graphic file.
>
>After creating the portable bit mapped graphic, you'll need to convert it into a web ready image format. I use the PNG format; it incorporates a transparency effect, and has no licensing issues.

pnmtopng somefile > myresult.png

>The 'pnmtopng' command may need to be downloaded, compiled, or installed on your system. The -text option allows you to embed some comments in the image. You'll need to create a text file using a texteditor in order to make use of this option (I used TextEdit 1.2 (v185) for Mac). At the end of the command, you can see that I've redirected the output to a named .png graphic file. You should probably proof/view the images using an image viewer. I used GraphicConverter 4.5.2.


There is also a pnmtojpg (pnm2jpg) but it's not Linux freeware like the rest and it may be Windoze only.


--

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Create a .jpg from text... (From: Stefan Eriksson <email@hidden>)
 >Re: Create a .jpg from text... (From: Brian Johnson <email@hidden>)

  • Prev by Date: Re: Create a .jpg from text...
  • Next by Date: Re: Create a .jpg from text...
  • Previous by thread: Re: Create a .jpg from text...
  • Next by thread: Re: Create a .jpg from text...
  • Index(es):
    • Date
    • Thread