Skip to content

perf(images): replace Kanvas img tags with StaticImage#7619

Open
Manishnemade12 wants to merge 1 commit intolayer5io:masterfrom
Manishnemade12:fix/kanvas-staticimage-optimization
Open

perf(images): replace Kanvas img tags with StaticImage#7619
Manishnemade12 wants to merge 1 commit intolayer5io:masterfrom
Manishnemade12:fix/kanvas-staticimage-optimization

Conversation

@Manishnemade12
Copy link
Copy Markdown

@Manishnemade12 Manishnemade12 commented Apr 11, 2026

Summary

This PR addresses image rendering performance in the Kanvas section by replacing raw HTML <img> tags with Gatsby's StaticImage and updating related styling selectors.

Closes : #7612

Changes made

  • Replaced 27 raw <img> usages with StaticImage across:
    • src/sections/Kanvas/kanvas-catalog.js
    • src/sections/Kanvas/index.js
    • src/sections/Kanvas/kanvas-modes.js
  • Added StaticImage imports where needed.
  • Removed now-unneeded static image imports that were previously passed to raw <img>.
  • Updated styled-component selectors from img to .gatsby-image-wrapper where layout/styling depended on direct <img> targeting.

Why this helps

  • Enables Gatsby image pipeline benefits for these assets (optimized delivery behavior and better rendering characteristics).
  • Reduces reliance on unoptimized raw image tags in a high-visibility Kanvas path.
  • Improves consistency with Gatsby image best practices.

Scope and safety

  • Surgical change limited to 3 Kanvas files.
  • Preserves existing content structure and visual intent.
  • No test run performed per request; editor diagnostics for changed files report no errors.

Signed-off-by: Manishnemade12 <mnemade140@gmail.com>
@rishiraj38
Copy link
Copy Markdown
Member

LGTM!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sistent] Optimize Performance by Replacing Raw HTML <img> Tags

2 participants