Media download & resizing

While requesting an asset with the API or CSV Export, URLs are given for the asset.

Here's an example from the API :

{
      "id": 62987,
      "name": "Black dress - Detail",
      "code": "CDI_VPF",
      "type": "image/png",
      "active": true,
      "created_at": "2020-12-10 11:06:55",
      "updated_at": "2020-12-21 15:57:45",
      "source": "CDI_VPF.png",
      "links": [
          {
              "rel": "self",
              "href": "https://YOUR-PIM.quable.com/api_1.php/medias/62987"
          },
          {
              "rel": "thumbnail",
              "href": "https://cdn.quable.com/YOUR-PIM/CDI_VPF/600x600/cdi_vpf-png.png"
          },
          {
              "rel": "source",
              "href": "https://cdn.quable.com/YOUR-PIM/CDI_VPF/original/CDI_VPF.png"
          }
      ]
  }

The links > rel:source node contains: "https://cdn.quable.com/YOUR-PIM/CDI_VPF/original/cdi_vpf-png.png"
original means the CDN will return the orignal binary file that was uploaded or imported.

The links > rel:thumbnail node contains: "https://cdn.quable.com/YOUR-PIM/CDI_VPF/600x600/cdi_vpf-png.png"

If you need a size other than "600/600", your scripts can request a different sizing (ex : https://cdn.quable.com/YOUR-PIM/CDI_VPF/800x450/cdi_vpf-png.png)

❗️

Live usage

It is strictly forbidden to use the URLs of assets in production on an e-commerce site. You must download binaries of the assets before any use on an e-commerce platform. This is why the URL provided is a download link and not a use link.

If you need a CDN feature in order to use these URLs on live environments or you need other resizing options ... please contact the Quable PIM sales team.