api icon indicating copy to clipboard operation
api copied to clipboard

Minor contradiction regarding the Rotation parameter in Image API 3.0

Open sophmi opened this issue 1 year ago • 1 comments

Image API 3.0, s 4 contains the following:

Size and region parameters in pixels must be non-negative integers. Size and region parameters in percentages and the rotation parameter MUST be positive floating point numbers or integers.

However, the rotation parameter should instead be non-negative, as shown in the examples and stated elsewhere in the spec (e.g. s 4.3):

The numerical value represents the number of degrees of clockwise rotation, and may be any floating point number from 0 to 360.

Explicitly stating that 0 to 360 is inclusive (if 360 is valid) might also be beneficial.

(Although 0 is +0 in IEEE 754, the spec doesn't mandate use of signed zero floats and that interpretation doesn't address "or integers")

sophmi avatar Aug 02 '24 18:08 sophmi

Editors agree. Will need to wait for Image 4.0 for the fix to come into effect.

azaroth42 avatar Mar 17 '25 14:03 azaroth42