Aspect ratio is the ratio between the height and width of an image. If you want to resize an image by 100 pixels, you cant remove 100px from the height and width, otherwise, it would become distorted. You will need to resize the height or…