TwelveMonkeys ImageIO
MyThe TwelveMonkeys ImageIO library, can now write TGA format, using the standard ImageIO API. It is free, open source software, released under BSD license.
Input can be pretty much any image format supported by an ImageIO plugin, such as JPEG, PNG, TIFF or many more.
Minimal code sample:
public static void main(String[] args) throws IOException {
BufferedImage image = ImageIO.read(new File(args[0]));
ImageIO.write(image, "TGA", new File("foo.tga"));
}
I am the author of the above mentioned library.