Replies: 1 comment 2 replies
-
Hey @martpie, The image gallery feature is coming to v1.5. The issue I see with cleaning images automatically is how to make sure images that are used outside of mdx files are still kept. Thoughts? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just spent 10 minutes clearing unused images in
public/
on a repo using Outstatic. It would be awesome if removed images from content + cover image, they were also removed from thepublic/
folder.I realize that is a complex-ish feature to build, especially since there can be a significant perf hit at scale. At the same time, Outstatic is really meant for small-medium websites. Instead of doing it at every save, there could be a button alongside "rebuild metadata" to scan all content for used images, and remove the unused ones?
This goes against the feature of a "media gallery", but I'm not sure this is something you'll ever want to build.
Beta Was this translation helpful? Give feedback.
All reactions