Allow iiurlheight to be used without iiurlwidth
authorCatrope <roan.kattouw@gmail.com>
Tue, 23 Apr 2013 03:46:15 +0000 (20:46 -0700)
committerCatrope <roan.kattouw@gmail.com>
Fri, 3 May 2013 00:34:07 +0000 (17:34 -0700)
commit8457ee85910af1ca508bb3ca53e2b0cc94442142
treec13732628a898cbf3b3dc4af01de8b709fee23c4
parent9d37b40d48c7aa598950de63eb51ffafe93d4888
Allow iiurlheight to be used without iiurlwidth

Wanting to get a thumbnail with only the height constrained is a
reasonable use case, the only reason we don't support it in the
API is because the backend doesn't support it directly. This is
easy enough to emulate by setting the width to the full width of
the image if only the height is specified. This makes the transform
function use a bounding box of size w x h, and if w is the width of
the original image that's equivalent to just bounding the height.

Change-Id: I28c7c22ee91669469cbd9e7d25f09100933582de
RELEASE-NOTES-1.22
includes/api/ApiQueryImageInfo.php