How to get asset dimensions

  • 8 April 2022
  • 0 replies
  • 85 views

Userlevel 1

Topic or Problem Statement

Getting asset dimensions 

 

Root Cause or Use Case

I am looking for a way to get the dimensions of the images while making the API calls. 

 

Prerequisites to Resolve

  • Contentstack account

  • Delivery token

  • Stack API Key

 

Steps to Resolve

  • Fetch the image dimension using our include_dimension=true parameter. 

  • Retrieve the image and height of an image using the Get an asset API call

 

Related Questions or Symptoms

  1. Get all assets call is not returning the images dimensions. How do I get them?

 

Other Helpful Resources

Get an asset API call: https://www.contentstack.com/docs/developers/apis/content-delivery-api/#get-a-single-asset


0 replies

Be the first to reply!

Reply