TGA color depth with transparency

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

ZaRR
Posts: 6
Joined: Mon Jun 20, 2022 1:44 pm

TGA color depth with transparency

Post by ZaRR »

XnView MP Windows
Version 1.3.1 64bits (Oct 11 2022)

At the moment XNView MP can reduce colors of TGA but taking off transparency by replacing to white color and saving to 32bit.
Can we please have an option to save transparency while changing color depth? So should save 32bit but with transparency.
At current time I am doing manually in Paint.NET to keep transparency.

Thank you!
You do not have the required permissions to view the files attached to this post.
User avatar
XnTriq
Moderator & Librarian
Posts: 6387
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: TGA color depth with transparency

Post by XnTriq »

I support this request.

As a workaround, you can use ImageMapPosterize…

posterize.png


… or the G'MIC-Qt 8bf plug-in:

gmic.png
You do not have the required permissions to view the files attached to this post.
ZaRR
Posts: 6
Joined: Mon Jun 20, 2022 1:44 pm

Re: TGA color depth with transparency

Post by ZaRR »

The more I know (photoshop plugins in xnview) ! :idea:
Indeed the plugin does the work, but if possible at free time, please, make it as in xnview mp too.
Thank you!
User avatar
XnTriq
Moderator & Librarian
Posts: 6387
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: TGA color depth with transparency

Post by XnTriq »

Yes, I would also prefer if XnView could do it “natively” via ImageChange color depth… (and batch mode).

PS: I'm not a developer. Pierre does everything on his own!
User avatar
xnview
Author of XnView
Posts: 44920
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: TGA color depth with transparency

Post by xnview »

sorry but could you explain more, if you save this TGA in PNG alpha channel is kept
Pierre.
ZaRR
Posts: 6
Joined: Mon Jun 20, 2022 1:44 pm

Re: TGA color depth with transparency

Post by ZaRR »

Need to save it to as TGA, but reduced colors.
Image -> Change color depth -> (Apply Image ticked/marked) Colors (any).
You will notice that transparenty replaced to white color. Need to say that only TGA 32bit supports transparenty.
What I suggest is to keep transparenty.
Thank you!
User avatar
xnview
Author of XnView
Posts: 44920
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: TGA color depth with transparency

Post by xnview »

if you remove alpha channel, there is no more transparency
Pierre.
ZaRR
Posts: 6
Joined: Mon Jun 20, 2022 1:44 pm

Re: TGA color depth with transparency

Post by ZaRR »

Wishing to save transparency, not converting it to white color.
Made a video:
https://youtu.be/v157P96Dxpk

So would be nice when changed ex. to 256 colors it will be still transparent.
Please!
Thank you!
User avatar
xnview
Author of XnView
Posts: 44920
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: TGA color depth with transparency

Post by xnview »

if you want to convert alpha channel to a transparency color index, you need to use 'Edit colormap' after converting in 256 colors
Pierre.
ZaRR
Posts: 6
Joined: Mon Jun 20, 2022 1:44 pm

Re: TGA color depth with transparency

Post by ZaRR »

Checked Edit colormap option but quite didn't understand how transparency marking on white colors work there, still same result.
But what I wished if such would be automatical, so multi file editing like CTRL+U. (With saving transparency ofcourse)