Batch Resize ->Fit Over: Square Ratios
Posted: Sun Nov 29, 2009 10:15 pm
I noticed that when I batch resize photos for thumbnails, and select the Fit Over checkbox, it will not resize correctly on photos that have a lesser ratio than the specified one. Instead of checking both edges and making sure that they resize over the specified dimensions, it will take the shortest edge of the input image and resize that edge to the specified dimension; but if the photo is square(ish) and your aspect ratio is rectangular, then the longer side of the photograph will at times will not exceed the dimension specified.
To clarify, take this example:
I am resizing a photo that is:
250W x 200H (5:4 ratio)
I tell XnView to resize that photo to:
200W x 150H (4:3 ratio)
And check the "Fit over (W or H)" box
XnView will take the shortest edge of the input photograph (200H) and resize it to the input dimension (150H) which will output a photo with the following dimensions:
188W x 150H
Notice how the output width did not "fit over" the specified width? Please verify this error by testing it out yourself.
In order to correct this error I believe that XnView needs to calculate check the output width and height of a photograph, compare those to the input widths, then choose which side it is resizing; instead of assume that resizing the shortest side of the input photograph will output both dimension correctly.
It hurt my brain trying to figure out why some of my exported photos were not big enough on one of the dimensions. Hopefully I did not hurt your brain in trying to explain it. Let me know if you have any questions or if I am making no sense.
To clarify, take this example:
I am resizing a photo that is:
250W x 200H (5:4 ratio)
I tell XnView to resize that photo to:
200W x 150H (4:3 ratio)
And check the "Fit over (W or H)" box
XnView will take the shortest edge of the input photograph (200H) and resize it to the input dimension (150H) which will output a photo with the following dimensions:
188W x 150H
Notice how the output width did not "fit over" the specified width? Please verify this error by testing it out yourself.
In order to correct this error I believe that XnView needs to calculate check the output width and height of a photograph, compare those to the input widths, then choose which side it is resizing; instead of assume that resizing the shortest side of the input photograph will output both dimension correctly.
It hurt my brain trying to figure out why some of my exported photos were not big enough on one of the dimensions. Hopefully I did not hurt your brain in trying to explain it. Let me know if you have any questions or if I am making no sense.