web

Image

Quickly upload, resize, and convert images

Convert Free

POSThttps://api.m3o.com/v1/image/Convert

Convert an image from one format (jpeg, png etc.) to an other either on the fly (from base64 to base64), or by uploading the conversion result.

Request payload

base64 string

base64 encoded image to resize, ie. "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="

name string

output name of the image including extension, ie. "cat.png"

outputURL boolean

make output a URL and not a base64 response

url string

url of the image to resize

Response

base64 string

url string

Resize Free

POSThttps://api.m3o.com/v1/image/Resize

Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters. If one of width or height is 0, the image aspect ratio is preserved. Optional cropping.

Request payload

base64 string

base64 encoded image to resize, ie. "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="

cropOptions object

optional crop options if provided, after resize, the image will be cropped

height number

name string

output name of the image including extension, ie. "cat.png"

outputURL boolean

make output a URL and not a base64 response

url string

url of the image to resize

width number

Response

base64 string

url string

Upload Free

POSThttps://api.m3o.com/v1/image/Upload

Upload an image by either sending a base64 encoded image to this endpoint or a URL. To resize an image before uploading, see the Resize endpoint.

Request payload

base64 string

Base64 encoded image to upload, ie. "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="

name string

Output name of the image including extension, ie. "cat.png"

url string

URL of the image to upload

Response

url string