Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor contradiction regarding the Rotation parameter in Image API 3.0 #2311

Open
sophmi opened this issue Aug 2, 2024 · 0 comments
Open

Comments

@sophmi
Copy link

sophmi commented Aug 2, 2024

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant