Skip to content

Conversation

@si
Copy link
Owner

@si si commented Jan 3, 2026

Motivation

  • Netlify builds were failing with heifsave: Unsupported compression when the imgDim transform attempted to process HEIF/HEIC images.
  • The imgDim transform generates blurred placeholders and srcset variants using sharp, which can error on unsupported HEIF compression and abort the build.
  • Skipping HEIF/HEIC files during the transform prevents these errors from taking down the entire site build.
  • The change is a minimal, low-risk guard that keeps existing processing for supported image types.

Description

  • Update _11ty/img-dim.js to normalize dimensions.type with toLowerCase() and detect heif/heic types.
  • Early-return from processImage for heif/heic images and emit a console.warn that includes the image src.
  • This prevents srcset and blurry-placeholder generation for unsupported HEIF images while leaving other behavior unchanged.
  • No other files or transforms were modified.

Testing

  • No automated tests were run on this change.

Codex Task

@netlify
Copy link

netlify bot commented Jan 3, 2026

Deploy Preview for sijobling failed. Why did it fail? →

Name Link
🔨 Latest commit f43ffcc
🔍 Latest deploy log https://app.netlify.com/projects/sijobling/deploys/695905e88ffa97000848c183

@netlify
Copy link

netlify bot commented Jan 3, 2026

Deploy Preview for si-jobling failed. Why did it fail? →

Name Link
🔨 Latest commit f43ffcc
🔍 Latest deploy log https://app.netlify.com/projects/si-jobling/deploys/695905e8b7324a00088f0014

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants