Difference between resizing image and cropping it

what is the difference between resizing image and cropping it and how does the two process differ at pixel level?

Cropping is when you cut off part of an image to achieve a new size or shape. Resizing maintains the entire image and simply changes the size

Does no. of pixel changes in resizing? means if if we are increasing the size then with what value of pixel the extra space is filled with ?

Yes , the number of pixels change when resizing . There are various algorithms for resizing the size of images, which sometimes include removing the pixels.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.