-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.x]: GraphQL product image format WebP not working #15572
Comments
nfourtythree
added a commit
that referenced
this issue
Aug 21, 2024
brandonkelly
added a commit
that referenced
this issue
Aug 21, 2024
…oduct-image-format-webp-not-working Fixed #15572 GQL not allowing overriding named transforms
Craft 4.11.5 and 5.4.6 are out now with a fix for this, via #15580. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Description
I'm not 100% if this issue should be posted here or in the CMS repository. Feel free to move it.
I am trying to fetch the product images with GraphQL using an image transform where I need each image in the original format and the WebP format.
Since I have 2 product types I guess I need to define this twice.
The query does not fail and the transform works but the WebP format is not working.
It just gives the same URL as the normal non WebP URL.
It also seems to return a slightly different path than when I do this with twig.
GraphQL image URL => https://the-house.lndo.site/uploads/products/_productThumbnail/1_4oz-Krugerrand2-Medium.png
Twig image URL => https://the-house.lndo.site/uploads/products/_400x400_fit_center-center_none/1_4oz-Krugerrand2-Medium.png
The working Twig WebP transform also seems to add a product ID in the URL.
Steps to reproduce
Expected behavior
It should return the path to the WebP version of this image.
Actual behavior
It just returns the original image format.
Craft CMS version
5.3.4
Craft Commerce version
5.0.16.2
PHP version
8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: