Skip to content
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

Aspect ratio transformation not working #88

Open
hazzyeer opened this issue Feb 21, 2021 · 3 comments
Open

Aspect ratio transformation not working #88

hazzyeer opened this issue Feb 21, 2021 · 3 comments

Comments

@hazzyeer
Copy link

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.
@Chuloo
Copy link
Collaborator

Chuloo commented Feb 22, 2021

Hi, could you use the latest version? Pushed an update to the types. Let me know if it works.

@hazzyeer
Copy link
Author

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
      }
    }
  }
}

@Chuloo
Copy link
Collaborator

Chuloo commented Feb 24, 2021

I can't seem to reproduce this, did you try other transformations aside 'ar' in the transformations param?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants