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

NameTypeDescription

cid*

String

The IPFS cid

Query Parameters

NameTypeDescription

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

Last updated