Discarding alpha channel from images stored as Numpy arrays May 10, 2023 by Tarik Just slice the array to get the first three entries of the last dimension: image_without_alpha = image[:,:,:3]