Contentful logo

Contentful Community

Controlling image quality in gatsbyjs

#1

Hey There

Wondering how to use graphql to query a image and query a certain image quality. Right now they being bringing them in at 50% quality.

Any help would be appreciated.

Thanks!

0 Likes

#2

Hi @derekbollig,

As you can see in the following tutorial you can associate several image parameters in your query:

https://www.contentful.com/developers/docs/references/graphql/#/reference/schema-generation/image-transformations

You can use resizeStrategy with the SCALE enum type value.

0 Likes