Skip to main content

mr resource rotate

Rotate an image Resource by the given number of degrees. Only raster image Resources are supported (jpeg, png, gif, webp, bmp, tiff, heic, heif, avif), not SVG; the rotation creates a new version on success so the original is preserved. The --degrees flag is required and typically takes 90, 180, or 270 (negative values rotate counter- clockwise).

Usage​

mr resource rotate <id>

Positional arguments:

  • <id>

Examples​

Rotate 90 degrees clockwise

mr resource rotate 42 --degrees 90

Rotate 180 degrees

mr resource rotate 42 --degrees 180

Flags​

FlagTypeDefaultDescription
--degreesint0Rotation degrees (required) (required)

Inherited global flags​

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Exit Codes​

0 on success; 1 on any error

See Also​