Skip to content

Conversation

@dimitrieh
Copy link
Contributor

@dimitrieh dimitrieh commented Dec 23, 2025

Summary

This PR fixes white border artifacts that appear on transparent PNG images after automated compression.

Fixes #4278

Problem

The calibreapp/image-actions workflow was using lossy PNG compression (80% quality via sharp/libvips), which can introduce white border artifacts at transparency boundaries. This was observed in PR #4273 where mcp-in-flowfuse.png developed a white border at the top after automated compression.

Timeline

Date Event
Feb 2023 Workflow introduced in PR #447 claiming "lossless compression"
Feb 2023 Reality: calibreapp/image-actions default pngQuality was always 80% (lossy)
Dec 2025 White border artifact observed in PR #4273

Solution

Alternative to #4281 just changing quality of png to 100

Test plan

  • Create a test PR with a transparent PNG image
  • Verify the workflow runs successfully
  • Verify no white border artifacts are introduced
  • Verify PNG file size is reduced

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
  • For blog PRs, an Art Request has been created (instructions)

@dimitrieh dimitrieh self-assigned this Dec 23, 2025
@github-actions
Copy link
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 62.5%, saving 271.4 KB.

Filename Before After Improvement Visual comparison
src/blog/2025/11/images/mcp-in-flowfuse.png 217.1 KB 81.4 KB 62.5% View diff
src/blog/2025/12/images/mcp-in-flowfuse.png 217.1 KB 81.4 KB 62.5% View diff

@dimitrieh
Copy link
Contributor Author

@ppawlowski created this one instead of #4300 :)

@dimitrieh
Copy link
Contributor Author

test plan success

@netlify
Copy link

netlify bot commented Dec 23, 2025

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit 6fd1e78
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/694a542f25f48c00085f0a59
😎 Deploy Preview https://deploy-preview-4300--flowforge-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 73 (🟢 up 8 from production)
Accessibility: 80 (no change from production)
Best Practices: 100 (🟢 up 8 from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Dec 23, 2025

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit 041be4e
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/694a54e599e154000856c819
😎 Deploy Preview https://deploy-preview-4300--flowforge-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 62 (🔴 down 3 from production)
Accessibility: 80 (no change from production)
Best Practices: 100 (🟢 up 8 from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image compression workflow introduces white border artifacts on transparent PNGs

2 participants