from PIL import Image
import numpy as np
pixels1 = Image.open('image.jpeg')
pixels = pixels1.load()
for i in range(pixels1.size[0]):
for j in range(pixels1.size[1]):
pixels[i,j] = (0, 0, 0)
pixels = np.asarray(pixels)
pixels = Image.fromarray(pixels)
pixels.show()
I get this error
TypeError: Cannot handle this data type: (1, 1), |O