Is it possible to use gatsby-image to render images loaded in Portable Text / Rich Text?

7 replies
Last updated: Jan 1, 2021

Hi everyone, with the risk of asking a stupid question – I was wondering if it’s possible to use gatsby-image to render images loaded in Portable Text / Rich Text – or not. Any opinions?

Nov 23, 2020, 12:04 PM
Nov 23, 2020, 12:06 PM
Nov 23, 2020, 12:06 PM

Amazing! Thanks for the quick response. I’ll check this out 🙂

Nov 23, 2020, 2:25 PM

Follow-up: Works perfectly well for what I need, so, thanks again

user Y

Nov 24, 2020, 8:06 AM

user G
Thank you for asking this! I’ve been struggling with this one for a while and glad to have a solution. Cheers

Jan 1, 2021, 11:45 PM

user G
Thank you for asking this! I’ve been struggling with this one for a while and glad to have a solution. Cheers

Jan 1, 2021, 11:45 PM

Sanity.io: Get the most out of your content

Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Give your team exactly what they need to edit and publish their content with the customizable Sanity Studio. Get real-time collaboration out of the box. Sanity.io comes with a hosted datastore for JSON documents, query languages like GROQ and GraphQL, CDNs, on-demand asset transformations, presentation agnostic rich text, plugins, and much more.

Don't compromise on developer experience. Join thousands of developers and trusted companies and power your content with Sanity.io. Free to get started, pay-as-you-go on all plans.

Categorized in

Related topics

Get more help in the community Slack

Go to How to deploy Gatsby sites using official Sanity starter templatesGo to How to generate RSS.xml files from Sanity posts with gatsby-plugin-feedGo to How to make Algolia work with Gatsby & SanityGo to How to improve image loading with Gatsby and gatsby-plugin-sanity-image?Go to Set up Draft Previews with Gatsby Cloud HostingGo to How to display Sanity images in Gatsby-powered photography sites
TopicCategoriesFeaturedRepliesLast Updated
How to deploy Gatsby sites using official Sanity starter templates25Nov 30, 2020
How to generate RSS.xml files from Sanity posts with gatsby-plugin-feed6Jan 12, 2021
How to make Algolia work with Gatsby & Sanity8Jan 7, 2021
How to improve image loading with Gatsby and gatsby-plugin-sanity-image?10Nov 27, 2020
Set up Draft Previews with Gatsby Cloud Hosting4Aug 26, 2020
How to display Sanity images in Gatsby-powered photography sites19Jun 16, 2020

Related contributions

Occo
- Made with Sanity

Complex product offering with nested product structure and tiered pricing.

Kevin Green
Go to Occo

Figma Config
- Made with Sanity

Website for Config, the global design conference by Figma.

Corey Ward
Go to Figma Config

The Agnes
- Made with Sanity

A high end rental real estate site built with Gatsby, Sanity and Shopify that pulls in listing data via API and includes a headless Shopify shop.

David Gross
Go to The Agnes