imageTransform method
- String imageUrl
The Image Delivery API is used to retrieve, manipulate and/or convert image files of your Contentstack account and deliver it to your web or mobile properties. {Supported input formats}: JPEG, PNG, WEBP, GIF {Supported output formats}: JPEG (baseline & progressive), PNG, WEBP (lossy & lossless), GIF Read documentation for more details: https://www.contentstack.com/docs/developers/apis/image-delivery-api/#limitations-with-optimizing-image
imageUrl
is the required parameter
Example:
final stack = contentstack.Stack(apiKey, deliveryToken, environment);
imageTransformation = stack.imageTransform(imageUrl);
Implementation
ImageTransformation imageTransform(String imageUrl) {
return ImageTransformation(imageUrl, _client);
}