How to write 32-bit TARGA?

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderator: xnview

Aller

How to write 32-bit TARGA?

Post by Aller »

I have a JPG which I need to edit (and have had no problems doing that) and end up with a 32-bit TARGA file. The resulting file, I've noticed, has roughly 3 bytes per pixel. Is there a way to save this as a 32-bit file (presumably meaning no compression, and with an alpha channel that specifies that none of the pixels are transparent)?

Also, while I'm at it, is there a way to manipulate the alpha channel in detail (namely importing and exporting an 8-bit image... I suppose other things like -wmark can be done on an exported image if that's available).
User avatar
xnview
Author of XnView
Posts: 48227
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How to write 32-bit TARGA?

Post by xnview »

Aller wrote:I have a JPG which I need to edit (and have had no problems doing that) and end up with a 32-bit TARGA file. The resulting file, I've noticed, has roughly 3 bytes per pixel. Is there a way to save this as a 32-bit file (presumably meaning no compression, and with an alpha channel that specifies that none of the pixels are transparent)?

Also, while I'm at it, is there a way to manipulate the alpha channel in detail (namely importing and exporting an 8-bit image... I suppose other things like -wmark can be done on an exported image if that's available).
Currently there is no possibility to convert 24bits into 32 bits, but i'll add it
Aller

Post by Aller »

Nice to know. Converting to 24-bits to 32-bits would have been nice for the current project, but just thinking a little more long term... If I had a tool the size of nConvert that could not just convert to 32-bits (with a dummy alpha channel), but actually properly import an Alpha Channel, it would save the 113MB download of PSP demo that I've instructed people to do just to perform that task.