Search found 4 matches

by jasonwpalmer
2014-01-02T05:18:43-07:00
Forum: Users
Topic: Convert png to TGA-16
Replies: 7
Views: 8087

Re: Convert png to TGA-16

I appreciate your help.

I have been able to write the TGA Image files by Implementing a codec with JAI. I was hoping to be able to just use Image Magick as JAI (Java Advanced Imaging) hasn't changed or been developed for over 7 years now.

Wishful thinking I suppose.

Thanks again for your time.
by jasonwpalmer
2014-01-01T14:06:17-07:00
Forum: Users
Topic: Convert png to TGA-16
Replies: 7
Views: 8087

Re: Convert png to TGA-16

I have also looked at the source code and this is why I know that tga.c cannot be used to write the tga, however - the header on a tga-16 is only 18 bytes. So in theory, I believe the bit-shifting could be done with a proper fx: command. The next problem would be writing the header - I thought I ...
by jasonwpalmer
2014-01-01T12:06:40-07:00
Forum: Users
Topic: Convert png to TGA-16
Replies: 7
Views: 8087

Re: Convert png to TGA-16

Thanks for the attempt. I have learned that whenever you ask Image Magick for a tga file - it only produces a tga with 8 bits per channel as you just experienced. I think the answer is to extract the channels, truncate the 8-bit rgb values to 5-bit rgb values and then add a bitmask alpha layer based ...
by jasonwpalmer
2014-01-01T10:51:45-07:00
Forum: Users
Topic: Convert png to TGA-16
Replies: 7
Views: 8087

Convert png to TGA-16

I am trying to convert a PNG 8888 to TGA 5551 format. I am a novice with Image Magick and do not know if this is currently possible. I understand that TGA is outdated and used very little today. Can somebody please point me in the right direction?