Skip to content

optimize snapshots: convert PNGs to WebP for reduced repo size#118

Open
ufraaan wants to merge 1 commit intomegh-bari:mainfrom
ufraaan:optimize-snapshots-webp
Open

optimize snapshots: convert PNGs to WebP for reduced repo size#118
ufraaan wants to merge 1 commit intomegh-bari:mainfrom
ufraaan:optimize-snapshots-webp

Conversation

@ufraaan
Copy link
Copy Markdown

@ufraaan ufraaan commented Sep 28, 2025

related issue

closes #41 - Large image assets in /public directory slow down cloning

summary

converted screenshot assets in /public/snapshots from PNG to WebP format to significantly reduce repository size and improve clone performance for contributors.

impact

  • before: /snapshots directory was ~108 MB
  • after: /snapshots directory is ~7.31 MB
  • net reduction: 100.7 MB (93% smaller)

technical changes

  • converted all PNG screenshots in /snapshots/ to WebP format using lossless compression
  • preserved social media preview images (og-banner.png, twitter (𝕏) cards) in original PNG format to ensure cross-platform compatibility
  • maintained all existing file references and metadata

benefits

  • faster repository cloning and forking for new contributors
  • reduced bandwidth consumption for CI/CD pipelines
  • lower storage overhead while preserving image quality
  • maintained social media preview functionality across all platforms

implementation notes

this change focuses on local asset optimization...
the WebP format provides superior compression ratios compared to PNG while maintaining visual fidelity. social preview assets remain in PNG format as WebP support varies across social media platforms and crawlers.

future considerations for additional optimization (CDN migration, lazy loading) can be addressed in separate initiatives.

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 28, 2025

@moroii69 is attempting to deploy a commit to the Megh Bari Team on Vercel.

A member of the Team first needs to authorize it.

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.

Large image assets in /public directory (5MB–12MB) slow down cloning

1 participant