0

I want to convert an image "from YCRCB" to "RGB" using PIL library

Alaa Hesham
  • 21
  • 1
  • 2

1 Answers1

0

Here is a tweak

    if img.mode != 'RGB':

       img = img.convert('RGB')

The image you are trying to convert should be opened using PIL library

Alaa Hesham
  • 21
  • 1
  • 2