Welcome, Guest. Please login or register.

Author Topic: Convert Amiga IFF to linux  (Read 2351 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Convert Amiga IFF to linux
« on: September 13, 2008, 06:30:54 PM »
Code: [Select]
ilbmtoppm < pic.ilbm | pnmtopng - > pic.png

To batch it you can use something like:

First have a script file ilbmtopng:
Code: [Select]

#! /bin/sh
echo processing $1...
ilbmtoppm < $1 | pnmtopng - > $1.png

(Remeber to chmod u+x it)

Then use it like this:
Code: [Select]
find somedir \( -iname '*.iff' -o -iname '*.ilbm' \) -type f -print0 | xargs -0 -r -n1 ./ilbmtopng

NOTE: If you don't have netpbm package you can install it with:
Code: [Select]
sudo apt-get install netpbm