Hi guys,
A tiny little spinoff from a spinoff

Tired of having to convert IMF files to TGA (you know... that fancy game-internal graphics format that needs the famous but ancient "IMF Viewer" to look at), I decided to give it a go and create a converter for this myself.
This tool is as simple as can be.
You download the executable file, put it in any folder of your choice, run it and choose your preferred operation mode when being asked to.
The tool will then scan the folder where you've put it, and all its subfolders (if desired, see operation mode), for applicable IMF texture files, and convert them to standard TGA format in place.
The output looks like this:
$ IMFConverter.exe
*******************************************************************************
* IMF Converter v1.1 *
*******************************************************************************
+ Found 20 CPU Cores
+ Worker Thread Pool created
+ Current Working Path is "<whatever>"
* IMF Converter will convert all Targa (*.tga, *.tgb) files found
* using IL-2's "IMF" native format to standard "Targa (TGA)" format.
*
* Please choose whether to scan the current folder only,
* or scan subfolders as well:
* Press <1> for current folder only
* Press <2> for current folder and all subfolders
* Your Choice: 2
+ Starting Filesystem Walker...
+ Parsing folder "<whatever>"!
+ Parsing folder "<whatever>\2"!
+ Parsing folder "<whatever>\3"!
+ Converting "<whatever>\2\skin1o.tga" from IMF to TGA on Thread "pool-1-thread-1"
+ Converting "<whatever>\2\skin1p.tga" from IMF to TGA on Thread "pool-1-thread-3"
+ Converting "<whatever>\3\skin1p.tga" from IMF to TGA on Thread "pool-1-thread-7"
+ Converting "<whatever>\3\skin1q.tga" from IMF to TGA on Thread "pool-1-thread-8"
+ Converting "<whatever>\3\skin1o.tgb" from IMF to TGA on Thread "pool-1-thread-6"
+ Converting "<whatever>\3\skin1o.tga" from IMF to TGA on Thread "pool-1-thread-5"
+ Converting "<whatever>\2\skin1q.tga" from IMF to TGA on Thread "pool-1-thread-4"
+ Converting "<whatever>\2\skin1o.tgb" from IMF to TGA on Thread "pool-1-thread-2"
+ Converting "<whatever>\skin1p.tga" from IMF to TGA on Thread "pool-1-thread-12"
+ Converting "<whatever>\skin1o.tgb" from IMF to TGA on Thread "pool-1-thread-11"
+ Converting "<whatever>\skin1o.tga" from IMF to TGA on Thread "pool-1-thread-10"
+ Converting "<whatever>\skin1q.tga" from IMF to TGA on Thread "pool-1-thread-13"
+ File "<whatever>\DrogueP.tga" is type TARGA - needs no conversion.
+ Conversion of "<whatever>\3\skin1q.tga" on Thread "pool-1-thread-8" finished.
+ Conversion of "<whatever>\2\skin1q.tga" on Thread "pool-1-thread-4" finished.
+ Filesystem Walker finished, waiting for image converter threads to finish...
+ Conversion of "<whatever>\skin1q.tga" on Thread "pool-1-thread-13" finished.
+ Conversion of "<whatever>\3\skin1p.tga" on Thread "pool-1-thread-7" finished.
+ Conversion of "<whatever>\2\skin1p.tga" on Thread "pool-1-thread-3" finished.
+ Conversion of "<whatever>\skin1p.tga" on Thread "pool-1-thread-12" finished.
+ Conversion of "<whatever>\3\skin1o.tga" on Thread "pool-1-thread-5" finished.
+ Conversion of "<whatever>\2\skin1o.tga" on Thread "pool-1-thread-1" finished.
+ Conversion of "<whatever>\skin1o.tga" on Thread "pool-1-thread-10" finished.
+ Conversion of "<whatever>\3\skin1o.tgb" on Thread "pool-1-thread-6" finished.
+ Conversion of "<whatever>\2\skin1o.tgb" on Thread "pool-1-thread-2" finished.
+ Conversion of "<whatever>\skin1o.tgb" on Thread "pool-1-thread-11" finished.
+ All Sub-Threads finished.
* Processed 13 files , 12 of them having been converted.
* Please hit Enter to proceed!
+ That's it, bye
Since the game can read both IMF and "original" (TARGA) format TGA files, you don't lose anything, you can only win: "True" TGA files can be viewed, edited etc. directly with publically available tools, whereas IMF cannot.
As this is WIP and the tool rewrites files in place, a backup of your (texture) files is suggested as usual.
Download link:
https://www.mediafire.com/file_premium/xnxjz6b2gzd9sh1/IMFConverter.exe/fileChangelog:
v1.2
* Issue solved where IMF files without alpha channel would generate TGA files with (empty) alpha channel
* Bit-Shift overflow issue solved where one channel's MSB could change the next channel's LSB
v1.1
* Java archive compiled to native Windows Executable. You can launch it simply by double-clicking the exe now.
* File contains Icon, Version information etc. as expected from a Windows tool.
* Internally, everything has been recoded to make use of modern multi-core processors, i.e. it's multi-threaded now, hence considerably faster (the scale depends, maybe 5 times as fast, maybe a hundred times, it really depends, but you will notice the difference)
* Folder mode selection added: "1" scans current folder only, "2" scans all subfolders too (which was the previous behaviour).
v1.0
* Initial Release, jar-archive, no user selectable features.
![Cheers ]cheers[](https://www.sas1946.com/main/Smileys/akyhne/occasion14.gif)
Mike