English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 05 August 2018, 23:11   #1
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Question 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.
roondar is offline  
Old 06 August 2018, 03:20   #2
haps
Rumpig
 
haps's Avatar
 
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.
haps is offline  
Old 06 August 2018, 10:13   #3
roondar
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
roondar is offline  
Old 07 August 2018, 02:05   #4
roondar
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.
roondar is offline  
Old 07 August 2018, 09:44   #5
PeterK
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.
PeterK is offline  
Old 07 August 2018, 10:28   #6
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
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".
StingRay is offline  
Old 07 August 2018, 10:37   #7
PeterK
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.
PeterK is offline  
Old 07 August 2018, 11:56   #8
roondar
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
roondar is offline  
Old 14 April 2021, 15:31   #9
jfoust
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.
jfoust is offline  
Old 14 April 2021, 15:45   #10
roondar
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.
roondar is offline  
Old 14 April 2021, 17:06   #11
DamienD
Banned
 
DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
Without checking, maybe XnView MP has this ability?
DamienD is offline  
Old 14 April 2021, 18:50   #12
malko
Ex nihilo nihil
 
malko's Avatar
 
Join Date: Oct 2017
Location: CH
Posts: 4,856
Quote:
Originally Posted by roondar View Post
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.[...]
With the help of a shared folder, you can also launch a WinUAE instance that will automatically perform the conversion (amiga app) and quit before you retrieve the result on the PC side. Still valid in your 'use case' .


Quote:
Originally Posted by roondar View Post
[...] 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
malko is offline  
Old 14 April 2021, 21:52   #13
mrv2k
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.
mrv2k is offline  
Old 17 August 2021, 01:38   #14
Retro1234
Phone Homer
 
Retro1234's Avatar
 
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.
Retro1234 is offline  
Old 17 August 2021, 08:27   #15
mrv2k
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
It will batch converting and has full image processing. It's also free.
mrv2k is offline  
Old 17 August 2021, 10:57   #16
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,773
Quote:
Originally Posted by mrv2k View Post
NConvert https://www.xnview.com/en/nconvert/

Example

Code:
nconvert -out png mypic.iff
It will batch converting and has full image processing. It's also free.
Thanks Ill have a look later, I did see your other post it's just I saw your other post and did a search and some sad there were problems with IFF
Retro1234 is offline  
Old 17 August 2021, 12:43   #17
mrv2k
Registered User
 
Join Date: Apr 2020
Location: England
Age: 53
Posts: 431
Quote:
Originally Posted by Retro1234 View Post
Thanks Ill have a look later, I did see your other post it's just I saw your other post and did a search and some sad there were problems with IFF
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.
mrv2k is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:21.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.25432 seconds with 15 queries