Pass just height or just width to imagemagick.
Eliminates (I hope) the off-by-one size conversion problem.