- Issue created by @philipp.krauss
- Status changed to Needs work
over 1 year ago 1:00pm 15 May 2023 - 🇨🇭Switzerland ayalon
You can easily extend this feature in an extension inside this module.
We are using https://www.drupal.org/project/rokka → as an image CDN and do not rely on image derivatives from Drupal.
All you need to to is to add an extension and a data producer that allows the image styles to be used as "enums" and generate the links.
Most of the code could be easily taken from the GraphQL 3 module.Currently this feature is not high on our priority list but we highly appreciate your contribution as a patch or merge request.
- 🇨🇭Switzerland dulnan
I have implemented a new "Image" extension that adds a derivative field. It works pretty much like in graphql v3:
query { entityById(entityType: MEDIA, id: "3") { ... on MediaImage { fieldImage { hero: derivative(style: HERO) { urlPath width height } thumbnail: derivative(style: THUMBNAIL) { urlPath width height } } } } }
The new extension is available on the dev branch.
Thank you for your work here! We just integrated the extension in our dev setup and it works as expected.
Is there any timeline for when this change will be included in a version tag?
Are there any steps we could help with to release this extension?- 🇨🇭Switzerland dulnan
I've created a new release that includes the new image extension.
- Status changed to Fixed
11 months ago 4:53pm 24 January 2024 - Status changed to Fixed
11 months ago 7:47am 25 January 2024