gatsby-source-sanity icon indicating copy to clipboard operation
gatsby-source-sanity copied to clipboard

Image Pipeline Update

Open bradley opened this issue 3 years ago • 4 comments

Updates gatsby-source-sanity to support passing a subset of Sanity's Image Pipeline transformations when making calls via GraphQL or through the image utility functions.

References: https://github.com/sanity-io/gatsby-source-sanity/issues/89

bradley avatar Nov 12 '20 19:11 bradley

I wanted to add, you'll notice that @types/react-dom is added to the dependencies in package.json. I was unable to build the built version of this package without adding this, and confused as to why this was necessary and why it was not in the current codebase.

If anyone who knows could clear that up prior to merging, that would be useful.

bradley avatar Nov 12 '20 19:11 bradley

Is it possible to merge this PR @rexxars or any other sanity team member?

riccardogiorato avatar Dec 11 '20 11:12 riccardogiorato

@rexxars + Sanity Team: Bump on this PR or building a similar set of features yourselves.

This is a big sticking point for me. I just did a massive migration from Prismic to Sanity and I'm LOVING pretty much everything except for the image transformations. Prismic has a full suite of imgix transforms available as GraphQL params. I was using these params to desaturate my images and set variable image quality based on usage. I'm really missing these features now.

codingwithchris avatar Jan 17 '21 03:01 codingwithchris

Tagged as triaged, but is this actually in now? We cant add quality in still. I can create a PR if necessary just for quality. I've fixed it with patch-package temporarily

darylthornhill avatar Sep 13 '23 10:09 darylthornhill