imgix / imgix-java

A Java client library for generating URLs with imgix
https://www.imgix.com
BSD 2-Clause "Simplified" License
19 stars 8 forks source link

fix: convert tol to float #49

Closed ericdeansanchez closed 4 years ago

ericdeansanchez commented 4 years ago

Prior to this PR, width tolerance was expected to be of type int and within the range of [1, 100] or "one to one hundred percent." Now, tol is expected to be a doublet in the range [0.01, 1.0] which also represents "one to one hundred percent."

We have done this for consistency purposes, i.e. imgix-core-js uses floating point values. Since imgix-core-js was impl'd first, we defer to this tried/tested interface. This way, this feature is standard and consistent kit-wide.