Final answer:
Sunil should consider both the width and height of the photo when resizing it to maintain the aspect ratio and prevent distortion.
Step-by-step explanation:
To maintain the photo's aspect ratio, Sunil should consider both the width and height of the photo when resizing it. This means that he should resize the photo by the same factor for both the width and height. For example, if Sunil wants to double the size of the photo, he should double both the width and height to maintain the aspect ratio and prevent distortion in the image. By considering both the width and height, Sunil can ensure that the proportions of the photo remain the same.