Technology thoughts and ramblings

Practical write-ups on Sitecore technologies, Next.js and the occasional AI experiment, from someone who builds this stuff for a living.

Latest posts

View all →
Published on
Reading time
13 min read

Managing Image Quality with SitecoreAI, Next.js and Content Hub

Next.js image optimisation is great for photos but can break SVGs and soften PNGs, so a headless SitecoreAI front end needs to know what type of file each image is. That's easy with Media Library URLs and surprisingly hard with Content Hub public links. This post covers why different image types need different handling, and how to get file type information from Content Hub through Sitecore Connect for Content Hub to a shared Next.js image component.

Browse by topic

Jump straight to the things you care about.

About the author

David Goosem

Technical Architect

2026 Sitecore Technology MVP badge

Sitecore Technology MVP

2021–2026

Show all badges
  • 2026 Sitecore Technology MVP badge
  • 2025 Sitecore Technology MVP badge
  • 2024 Sitecore Technology MVP badge
  • 2023 Sitecore Technology MVP badge
  • 2022 Sitecore Technology MVP badge
  • 2021 Sitecore Technology MVP badge