AEM As Cloud | WebP Image Optimization | Asset Delivery API | How to pass the size options ?
Hi Team,
I've implemented web optimization for custom components using the code from https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/developing/advanced/web-optimized-image-delivery-java-apis.html?lang=en. I'm making the options configurable, allowing users to set width, quality, and size.
Since there's limited documentation specific to AEM as a Cloud, I referred to https://docs.mktossl.com/docs/experience-manager-learn/getting-started-with-aem-headless/how-to/images.html#query-variables to understand the format for "size".
According to that documentation, size should be "Size of the output image (both height and width) in pixels". However, neither of these attempts worked:
options.put("size", "45 45");
options.put("size", "45");
I'm sure there's an issue with the format I'm using, but I couldn't find relevant documentation. Could anyone offer guidance on how to resolve this?
Please note: I'm working on AEM as Cloud.
Thanks
Veena ✌





