Extend AEM GraphQL with renditions and Dynamic Media URL | Community
Skip to main content
martina54439202
Level 2
December 13, 2021
Solved

Extend AEM GraphQL with renditions and Dynamic Media URL

  • December 13, 2021
  • 1 reply
  • 994 views

As you can see here;

https://jmp.sh/nXDSEM5

I query an Image from a CF.

 

Anyone has an idea how one could extend that so I can get all image renditions and/or dynamic media URLs for that image?


Best

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

GraphQL now supports "Dynamic Media URLs". Example:

{ "data": { "adventureByPath": { "item": { "_path": "/content/dam/wknd-shared/en/adventures/bali-surf-camp/bali-surf-camp", "title": "Bali Surf Camp", "primaryImage": { "_dynamicUrl": "/adobe/dynamicmedia/deliver/dm-aid--a38886f7-4537-4791-aa20-3f6ef0ac3fcd/adobestock_175749320.jpg?preferwebp=true&width=1000&quality=80" } } } } }

 

For more details, please refer to:

1 reply

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
September 5, 2023

GraphQL now supports "Dynamic Media URLs". Example:

{ "data": { "adventureByPath": { "item": { "_path": "/content/dam/wknd-shared/en/adventures/bali-surf-camp/bali-surf-camp", "title": "Bali Surf Camp", "primaryImage": { "_dynamicUrl": "/adobe/dynamicmedia/deliver/dm-aid--a38886f7-4537-4791-aa20-3f6ef0ac3fcd/adobestock_175749320.jpg?preferwebp=true&width=1000&quality=80" } } } } }

 

For more details, please refer to:

Aanchal Sikka