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

Resize image

Get resized image by using the IPFS CID

Resize image to the specified width and height.

GET https://gateway.omnidata.xyz/ipfs/:cid

When both a width and height are provided, the fit of the image will be cover - Preserving aspect ratio, ensure the image covers both provided dimensions by cropping/clipping to fit.

Path Parameters

Name
Type
Description

cid*

String

The IPFS cid

Query Parameters

Name
Type
Description

w

String

The width of the image is to be returned. e.g. w=200

h

String

The height of the image is to be returned. e.g. h=200

PreviousOriginal image from IPFSNextAvatar

Last updated 2 years ago