Remove alpha channel action?

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
elfor
Posts: 1
Joined: Mon Nov 07, 2022 6:34 pm

Remove alpha channel action?

Post by elfor »

Hello world!

Could you please add "remove alpha channel" to actions? This:
Image

I wanted to batch remove the alpha channel from .TGA files, like doing "-alpha off" using imagemagick.

Edit: Or a secondary, only remove "single color alpha channel" feature! (not sure if that could be detected)

Thank you very much, long time user, first time poster.
cday
XnThusiast
Posts: 4394
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Remove alpha channel action?

Post by cday »

I am not very knowledgeable on alpha, but you might check if you haven't already done so whether any of the options in available this action provide the functionality that you need:

Screenshot from 2022-11-07 19-14-10.png
Screenshot from 2022-11-07 19-14-10.png (34.63 KiB) Viewed 3675 times
hy_boxwood
Posts: 3
Joined: Fri Jan 26, 2024 9:23 pm

Re: Remove alpha channel action?

Post by hy_boxwood »

I need this action too, and I want to using it on 23,875 files in 1,729 folders, and "Change color depth- 24bits" can't do that, I put a file here maybe you can try it.
Orignal File:
Chap01_Prop_Under_LargeSign_02_PackAlbedoMetal.png
Remove alpha channel
Chap01_Prop_Under_LargeSign_02_PackAlbedoMetal2.png
Change color depth- 24bits
Chap01_Prop_Under_LargeSign_02_PackAlbedoMetal3.png
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Remove alpha channel action?

Post by user0 »

dedicated action would be handy, meanwhile:
1. remove alpha channel
2. (optional) convert 32 to 24 bit
remove_alpha_channel.png
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Remove alpha channel action?

Post by xnview »

you have 'Clear transparent pixels' actions
Pierre.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Remove alpha channel action?

Post by user0 »

xnview wrote: Thu Feb 01, 2024 7:46 am you have 'Clear transparent pixels' actions
but this is not the same as "Remove alpha channel", not sure how it works at all :D
since it doesn't affect the OP and a few of my test files.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Remove alpha channel action?

Post by xnview »

user0 wrote: Thu Feb 01, 2024 7:51 am but this is not the same as "Remove alpha channel", not sure how it works at all :D
not the same?
Pierre.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Remove alpha channel action?

Post by user0 »

xnview wrote: Thu Feb 01, 2024 9:07 am
user0 wrote: Thu Feb 01, 2024 7:51 am but this is not the same as "Remove alpha channel", not sure how it works at all :D
not the same?
nope. Try it on OP's file
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Remove alpha channel action?

Post by xnview »

right not the same. See issue for current status and some details.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Remove alpha channel action?

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.6.5. Please check and confirm the bug fix here.
Pierre.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Remove alpha channel action?

Post by user0 »

done in 1.6.5
Post Reply