Amiga.org

Amiga computer related discussion => General chat about Amiga topics => Topic started by: swift240 on September 13, 2008, 05:08:17 PM

Title: Convert Amiga IFF to linux
Post by: swift240 on September 13, 2008, 05:08:17 PM
Hi all, this might be a tuff one.

I use Ubuntu 8.04 with all updates, and I have a load of Amiga IFF clipart I would like to convert so I can import them to Linux, so far I don't have any thing on Ubuntu that will do the job.
I have tried synaptics manager on Ubuntu but no good.

Is there any thing that will do the job?
I don't want to use the Amiga unless I use Amikit as its faster.

TIA,
Mike.


Title: Re: Convert Amiga IFF to linux
Post by: whabang on September 13, 2008, 05:15:37 PM
Your best bet is probably to convert the images to another format. I'm sure there is some open-source batch converter for Linux.
Title: Re: Convert Amiga IFF to linux
Post by: swift240 on September 13, 2008, 05:18:02 PM
Yes I just found XnView tha will do the job, but I am  problems trying to get it installed.

Mike.
Title: Re: Convert Amiga IFF to linux
Post by: Piru 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
Title: Re: Convert Amiga IFF to linux
Post by: swift240 on September 13, 2008, 06:46:37 PM
Ahhh thank you for that info.

Mike.