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
-
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