I need to resize a picture to a fixed size. But it has to keep the factors between the width and height.
Say I want to resize a picture from 238 (w) X 182 (
238 (w) X 182 (
You'll have to crop 5 px off the top and bottom to get to your target size, however this could ruin the picture.
Really you should have a target width or height, then adjust the other dimension by the same proportion.