The changelog comment
"2.1.0 Added optional fit parameter. This method now supports proportional scaling. Pass zero as either parameter for proportional scaling."
is poorly structured and therefore IMO misleading. Yes for proportional scaling you pass 0 as either parameter... however this is *not* true if you use the optional fit param. When bestfit == true you must specify a *non-zero* value for both columns and rows. Note it WILL still scale proportionally e.g.
Imagick::resizeImage ( 200, 200, imagick::FILTER_LANCZOS, 1, TRUE)
will resize a 1000x750 image to 200x150
So for proportional resizing:
without "bestfit"
Imagick::resizeImage ( 200, 0, imagick::FILTER_LANCZOS, 1)
with "bestfit"
Imagick::resizeImage ( 200, 200, imagick::FILTER_LANCZOS, 1, TRUE)