Unix Help (thinkjet file convert)

Discussion in 'Mac Basics and Help' started by zerocustom1989, Sep 30, 2009.

  1. zerocustom1989 macrumors regular

    Joined:
    Sep 5, 2007
    #1
    Hey guys,

    I need to convert some thinkjet format (.TJ) files to something i can view.

    Google is turning up nothing but a unix command called thinkjettopbm that will convert the file to a pbm image file.

    http://netpbm.sourceforge.net/doc/directory.html#converters

    I have no idea how to use this thnkjettopbm command or how to install it.

    I dont know much about Unix. Is there any help you guys can give me?

    For some reason the silly oscilloscopes in my lab were set to save data in this format.
     
  2. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #2
    Assuming it is like al the other ...2pbm programs it is a "filter"

    To install it just put the executable file some place on the disk.

    Then just run it in the terminal
    Code:
    ./thnkjettopbm myfilename.tj
    notice that a pbm file is printed to the terminal. This is useless to you want tocapture it to a file. try this (while being in the directory where thnkjettopbm was saved)
    ./thnkjettopbm myfilename.tj >> myfilename.pbm
    now you have a pbm file. You can convert this to something like .jpg if you have pbmtojpg by using something like the above on the .pgb file or you can chain the two conversions togeter into one step like this
    Code:
    thnkjettopbm myfilename.tj | pbmtojpg >> myfilename.jpg
    To install the program more permanently copy it to /usr/bin.
     
  3. BobZune macrumors 6502a

    Joined:
    Oct 26, 2007
    Location:
    USA
  4. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #4
    I would use instead

    ./thnkjettopbm myfilename.tj > myfilename.pbm

    If there is an existing file with the same name, it will be overwritten rather than corrupted. If not, whatever. Either one will work fine.
     

Share This Page