web

Image

Upload, resize, and convert images

Introduction

The image service provides upload, resize, and image conversion. It provides a CDN for uploaded images and a simple API.

Notes

Max image size is 10MB.

CDN caches content with a TTL of 1 hour.

FeaturesFull documentation

EndpointDescriptionPricing (per request)
ConvertConvert 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. To use the file parameter you need to send the request as a multipart/form-data rather than the usual application/json with each parameter as a form field.Free
DeleteDelete an image previously uploaded.Free
ResizeResize 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. To use the file parameter you need to send the request as a multipart/form-data rather than the usual application/json with each parameter as a form field.Free
UploadUpload 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. To use the file parameter you need to send the request as a multipart/form-data rather than the usual application/json with each parameter as a form field.$0.001

Example

Please see an example of how to get started with the image api.

For a more detailed view please see the API page

Convert Request

Response

1{
2    "url": "cdn.images.m3o.com/your-account-id/cat.jpeg"
3}