I have an image where the colors are BGR. How can I transform my PIL image to swap the B and R elements of each pixel in an efficient manner?
Application of other solutions. Just for a temporary measure.
import numpy im = Image.fromarray(numpy.array(im)[:,:,::-1])