Images API (2024)

The Contentful Images API allows the retrieval and manipulation of image files referenced from assets.

The JSON representation of an asset in Contentful looks like this:

"fields": { "title": "Playsam Streamliner", "file": { "fileName": "quwowooybuqbl6ntboz3.jpg", "contentType": "image/jpg", "details": { "image": { "width": 600, "height": 446 }, "size": 27187 }, "url": "//images.ctfassets.net/yadj1kx9rmg0/wtrHxeu3zEoEce2MokCSi/cf6f68efdcf625fdc060607df0f3baef/quwowooybuqbl6ntboz3.jpg" } }

This reference covers the parameters you can append to the URL specified in the file.url field to manipulate and convert images.

To upload images to Contentful, refer here.

Note: As per the Technical Limits specifications, size of an image uploaded must not exceed 20MB. Images exceeding the size limit are treated as assets and the transformation features offered by the API are not applicable.

Note:For EU data residency customers, the Base URL is https://images.eu.ctfassets.net.

Images API (2024)
Top Articles
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 5980

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.