Unable to reshape numpy array

ValueError: cannot reshape array of size 30000 into shape (40,40,3)

link of the screenshots are as follow: https://drive.google.com/file/d/11uLsDsU5_xuPiUtHTgcX3EjeI-wzVONy/view?usp=sharing

hey @S18MLOL0007 ,
Reshaping the shape means , keeping the actual number of pixels in the image to be same in the new shape also.
Which mean 30000 = 40402 , which is not correct.
The task you are implementing is resizing the image.
So you need to implement resize to perform this task.

I hope this helps.
Thank You and Happy Learning :slightly_smiling_face:.