Skip to content

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

@sophmi

Description

@sophmi

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions