How to resize images without changing their aspect ratio
Forced resizing can distort faces and objects when the destination has a different aspect ratio.
What is the problem?
Forced resizing can distort faces and objects when the destination has a different aspect ratio.
Step-by-step solution
Read pixel dimensions
Use the image properties to find width and height in pixels, not the file size or print resolution.
Choose output width
Multiply the target width by the original height and divide by the original width, then round to whole pixels.
Export without distortion
Enable proportional scaling in your editor and export a separate copy at the calculated dimensions.
Alternative method
Compare width divided by height before and after resizing. A one-pixel difference can result from rounding.
Known limitations
A differently shaped destination requires cropping or padding rather than proportional resizing.
Frequently asked questions
Increase the target width if the rounded height would be zero. A raster image needs at least one pixel on each axis.