We can't really rely on scale value for non-square image scenario since we could split the value into widthScale and heightScale with different value (reference), it might be a good idea to return them as well in the response.
Solution
Option 1
Add widthScale and heightScale in the response. Or maybe put them inside displayedArea field.
Problem
Currently for
getViewport
method, we only returnscale
field.Response
We can't really rely on
scale
value for non-square image scenario since we could split the value intowidthScale
andheightScale
with different value (reference), it might be a good idea to return them as well in the response.Solution
Option 1
Add
widthScale
andheightScale
in the response. Or maybe put them insidedisplayedArea
field.Option 2 (break changes)
Remove
scale
and addwidthScale
andheightScale
in the response.