Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to delete several channels?
#6
(01-08-2021, 07:30 PM)tmanni Wrote: There is no way to delete several channels in one action in 2.10.
You can do it only programmatically.
Open the python console menu Filters > Python-Fu > Console ; these 2 lines do the job (assuming you have only one image opened)
Code:
img = gimp.image_list()[0]
[img.remove_channel(c) for c in img.channels]

Code golfing:

Code:
map(image.remove_channel,image.channels)

Smile
Reply


Messages In This Thread
How to delete several channels? - by Krikor - 01-08-2021, 05:45 PM
RE: How to delete several channels? - by rich2005 - 01-08-2021, 07:28 PM
RE: How to delete several channels? - by tmanni - 01-08-2021, 07:30 PM
RE: How to delete several channels? - by Ofnuts - 01-09-2021, 09:38 AM
RE: How to delete several channels? - by Ofnuts - 01-09-2021, 09:43 AM

Forum Jump: