PMXBOT Log file Viewer

Help | Karma | Search:

#pil logs for Monday the 29th of March, 2021

(Back to #pil overview) (Back to channel listing) (Animate logs)
[14:41:52] <bencc1> I'm trying to subtract an image from background with numpy and save back to image and getting an error
[14:41:54] <bencc1> ValueError: operands could not be broadcast together with shapes (1,512,512,3) (512,512)
[14:42:10] <bencc1> what does (1,512,512,3) means?
[14:42:18] <bencc1> and how can I save it?
[14:42:27] <bencc1> Image.fromarray((((img - matte) * 255).astype('uint8')), mode='L').save('full.jpg')