05 August 2018, 23:11 | #1 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
|
Command line image conversion tools
This is a question I didn't anticipate asking, but after a bunch of googling and searches over here on eab.abime.net.... I'm kinda stuck.
I'm looking for a MS Windows command line image converter that allows .iff (ILBM) to 8-bit BMP* conversions. Somehow this seems very hard to find. I did find several command line tools, but none of them seem to support ILBM as input format. I tried using Irfanview, which does do the conversion from the command line but screws up the palette entries and hence bitplane order. I also found at least one GUI based package that seems to allows for it, but I'm looking to include the conversion into a makefile so GUI only isn't very helpful. The two features it really should have is a) support for all OCS screen modes (standard, HAM, EHB) and b) it should keep all colours of the Amiga IFF palette intact and in the same order. Hopefully someone here knows of a good candidate? *) well, I'd prefer one that does a conversion to a raw interleaved bitmap, but that seems right out. However, I do have BMP2RAW from the Solid Gold Source, so conversion to 8-bit BMP will also do as that tool deals with the second step extremely well. |
06 August 2018, 03:20 | #2 |
Rumpig
Join Date: Aug 2006
Location: The bottom of the bottle
Age: 92
Posts: 243
|
I would imagine Image Magick should be able to do it.
|
06 August 2018, 10:13 | #3 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
|
Thanks for your suggestion!
I have downloaded it and tried it but sadly, it turns out it doesn't support IFF or ILBM formats. It supports just about anything else, but not IFF's |
07 August 2018, 02:05 | #4 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
|
An update: after messing around with libiff and libilbm, I managed to make an IFF reading version of BMPToRaw from the Solid Gold Source. Does the exact same thing, command line included, as BMPToRaw, but uses IFF ILBM files for input.
If people are interested, I am more than willing to share the code - ugly as it is. |
07 August 2018, 09:44 | #5 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
You could also try ImageConverter from Thilo Koehler, which once was on Aminet and on his homepage http://www.hd-rec.de, but isn't anymore. It seems to support both formats, but I'm not sure whether it will do what you need. It runs on OS 3.x and it's still there, but hidden. Just execute ImageConverter to see the command syntax with all options.
http://www.hd-rec.de/Archive/ImageConverter.lha Another candidate: http://aminet.net/package/gfx/conv/iBatch Last edited by PeterK; 07 August 2018 at 10:27. |
07 August 2018, 10:28 | #6 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
He's looking for a Windows tool: "I'm looking for a MS Windows command line image converter".
|
07 August 2018, 10:37 | #7 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
Yes, I've read that, but why not using the Amiga if it's difficult to find a solution for Windows. It was just a hint, not even tested.
|
07 August 2018, 11:56 | #8 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
|
Thanks for the suggestions, but I really did need a Windows tool. Having a Windows tools allows me to automate the conversion when making the project, so I don't need manually do one part on the Amiga side and the rest on the Windows side. It's all about efficiency, really.
Anyway, I no longer need a tool - I've made one using some the source code to other tools (BMPToRaw/libiff/libilbm) and a bit of C coding. Still, it's good to know there are command line Amiga alternatives, should I need them |
14 April 2021, 15:31 | #9 |
Registered User
Join Date: Apr 2021
Location: Jefferson, WI USA
Posts: 1
|
Did you ever post your Windows ILBM to JPEG converter code? I was looking for something like that.
I think ImageMagick once had ILBM support but they dropped it from the main distribution at some point, and I have not yet found an easy resource to see the old versions. |
14 April 2021, 15:45 | #10 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
|
Ah, I see what you mean now. Consider my earlier answer to the private message unsent
See, my code doesn't actually convert ILBM to JPEG. It converts ILMB to raw bitplane data for use in Amiga assembly projects. |
14 April 2021, 18:50 | #12 | |
Ex nihilo nihil
Join Date: Oct 2017
Location: CH
Posts: 4,856
|
Quote:
|
|
14 April 2021, 21:52 | #13 |
Registered User
Join Date: Apr 2020
Location: England
Age: 53
Posts: 431
|
I use NConvert command line tool to batch convert my images. It'll convert any format (including iff/ilbm) to any other with full image processing.
|
17 August 2021, 01:38 | #14 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,773
|
Can anyone recommend any software for this?
command line convert iff to any pc file format. |
17 August 2021, 08:27 | #15 |
Registered User
Join Date: Apr 2020
Location: England
Age: 53
Posts: 431
|
NConvert https://www.xnview.com/en/nconvert/
Example Code:
nconvert -out png mypic.iff |
17 August 2021, 10:57 | #16 | |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,773
|
Quote:
|
|
17 August 2021, 12:43 | #17 |
Registered User
Join Date: Apr 2020
Location: England
Age: 53
Posts: 431
|
Never had a problem. I use it to make about 24,000 IFF files when I make my WHDload image set. Just need to add -c 1 to the command so the the IFFs are compressed.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LHA in command line for PC | Vollldo | request.Apps | 2 | 04 March 2012 12:27 |
Command Line question | brolly | support.WinUAE | 8 | 18 April 2011 11:11 |
is there new command line ? | turrican3 | support.WinUAE | 1 | 15 April 2007 12:21 |
command line? | Drake1009 | support.WinUAE | 7 | 14 August 2004 17:17 |
Command Line. | ruttolibero | support.WinUAE | 1 | 25 July 2003 15:05 |
|
|