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

Image Caching #1165

Open
rowanc1 opened this issue Apr 26, 2024 · 0 comments
Open

Image Caching #1165

rowanc1 opened this issue Apr 26, 2024 · 0 comments

Comments

@rowanc1
Copy link
Member

rowanc1 commented Apr 26, 2024

Currently when we build a site or document we have to fait for image optimizations to complete. These image optimizations are completed in each export process, and are not shared. For a site build (e.g. clean) this can mean a significant slow down, especially for GIFs that are optimized to WebP.

Now that we have a cache folder, we should use that space to optimize the images and make the clean not wipe these out as they should be deterministic and based entirely on the image hash (not the filename at all). That would change build-time to be copying from the image directory into the appropriate folder, should ensure the sha is more consistent between builds, and just generally speed things up!

cc @fwkoch

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

No branches or pull requests

1 participant