PIL rotate image colors (BGR -> RGB) May 9, 2023 by Tarik I know it’s an old question, but I had the same problem and solved it with: img = img[:,:,::-1]