Omnidata protocol
  • Introduction
  • Omnidata Oracle
    • Intro
    • Testnets
  • Omnidata Storage
    • Intro
  • Omnidata Gateway
    • Intro
    • Imghub APIs
      • Original image from IPFS
      • Resize image
      • Avatar
      • Composite image
      • Rotate image
      • Flip image
      • Flop image
      • Blur image
    • FAQ
  • Roadmap
Powered by GitBook
On this page
  1. Omnidata Gateway
  2. Imghub APIs

Rotate image

Rotate the output image by either an explicit angle.

GET https://gateway.omnidata.xyz/ipfs/:cid?rotate=180

If an angle is provided, it is converted to a valid positive degree rotation. For example, -450 will produce a 270deg rotation.

If no angle is provided, it is determined from the EXIF data. Mirroring is supported and may infer the use of a flip operation.

Path Parameters

Name
Type
Description

cid*

String

The IPFS hash/cid

Query Parameters

Name
Type
Description

rotate*

String

The angle of rotation. (default auto)

PreviousComposite imageNextFlip image

Last updated 2 years ago