Merge pull request #124 from matrix-org/clarify_scale_crop

Clarify 'scale' & 'crop' resize methods
This commit is contained in:
Kegsay 2015-10-26 09:57:32 +00:00
commit 4823a133cd

View file

@ -36,6 +36,10 @@ width and height are close to the requested size and the aspect matches
the requested size. The client should scale the image if it needs to fit the requested size. The client should scale the image if it needs to fit
within a given rectangle. within a given rectangle.
In summary:
* "scale" maintains the original aspect ratio of the image
* "crop" provides an image in the aspect ratio of the sizes given in the request
Server behaviour Server behaviour
---------------- ----------------