Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reduce image size of *.png images #110

Open
evanwporter opened this issue Jan 10, 2025 · 1 comment
Open

feat: reduce image size of *.png images #110

evanwporter opened this issue Jan 10, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@evanwporter
Copy link
Collaborator

The size of the *.png images could potentially be reduced by running over all the images with imagemin and imagemin-pngquant.

I haven't explored this too indepth, but I first made a simple vite plugin that ran the imagemin app over all the images before adding them to the dist, but it took too long so I scrapped it. However from what I could tell the images did seem to be smaller if only by a few megabytes (I'm not sure how many of the images the app actually go to though).

@evanwporter evanwporter added the enhancement New feature or request label Jan 10, 2025
@andrewbenington
Copy link
Owner

I think this is definitely worth a try, if we can reduce the image size without affecting quality too much. A huge chunk of the bundle size is those Home images. I don't want to get rid of the images, or to make them too crunchy, but there's gotta be a way to get them at least 20% smaller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants