gatsby-transformer-cloudinary
gatsby-transformer-cloudinary copied to clipboard
Aspect ratio transformation not working
Hello, It seems that there is a bug when trying to get a fluid image object with an aspect ratio transformation.
query Query {
product {
image {
fluid(transformations: "ar_0.74,c_fill") {
...CloudinaryAssetFluid
}
}
}
}
I have as an error:
Error: Cannot return null for non-nullable field CloudinaryAssetFluid.aspectRatio.
Hi, could you use the latest version? Pushed an update to the types. Let me know if it works.
Using the latest version 2.2.3
didn't solve my problem, but using chained
instead of transformations
fixed my problem.
query Query {
product {
image {
fluid(chained: "ar_0.74,c_fill") {
...CloudinaryAssetFluid
}
}
}
}
I can't seem to reproduce this, did you try other transformations aside 'ar' in the transformations
param?