Images API 您所在的位置:网站首页 upload/cms/1/images/144.jpg Images API

Images API

2024-07-18 01:34| 来源: 网络整理| 查看: 265

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.


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有