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 (
Do you have Imagick? If so you can load the image with it and do something like thumbnailimage()
There you can skip either of the parameters (height or width) and it will resize correctly.