Hi,
Have anyone worked with webp format image for headless AEM cloud? We have trouble with retrieving the image from our solution via GraphQL. We do not have Dynamic Media with AEM. Do we have to get Dynamic Media so that we can use webp images in our solution.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @pdong,
Have you tried the Asset Delivery Java API?
The AssetDelivery API is an OSGi service that generates web-optimized delivery URLs for image assets.
com.adobe.cq.wcm.spi.AssetDelivery.getDeliveryURL(Resource resource, Map<String, Object> parameterMap)
Please let us know if this works!
@pdong yes that's correct you need Some Image Intelligence services to convert any image to next generation formats and that's with Dynamic media license. Alternatively you can use Akamai Image manager as well if your CDN is akamai.
AEM 6.5 Assets does not support the WEBP format. List of all the supported formats
However, there are some options available to work with WEBP images. Here are a few suggestions:
1. To convert WEBP images to other supported formats like JPG or PNG and generate renditions in AEM, you have the option to utilize an external tool like ImageMagick. This can be accomplished through a Command Line workflow step, allowing you to execute the external tool directly from AEM's command line. Examples - https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/media-handlers.html?l...
https://www.imagemagick.org/script/index.php
2. As suggested in another post, use Dynamic Media. https://experienceleague.adobe.com/docs/experience-manager-65/assets/dynamic/imaging-faq.html?lang=e...
3. For more advanced control and customization, you can consider creating a custom workflow step or media handler. This approach would require the use of external libraries to achieve the desired functionality. While the provided example of the webp servlet may not directly match your specific case, it can offer insights into potential external libraries that could be leveraged for your requirements. This allows you to tailor the solution according to your needs and integrate external capabilities seamlessly.
Hi @pdong,
Have you tried the Asset Delivery Java API?
The AssetDelivery API is an OSGi service that generates web-optimized delivery URLs for image assets.
com.adobe.cq.wcm.spi.AssetDelivery.getDeliveryURL(Resource resource, Map<String, Object> parameterMap)
Please let us know if this works!