3
Deduplicate cover image uploads by file hash
Mar 23, 2026
Right now you can upload the same image multiple times and they show as separate images in the cover selection menu. I understand that you currently treat all image uploads as unique to avoid issues with common names (like cover.png or whatever), but you could deduplicate them based on the file checksum. That would save you some functionally insignificant amount of storage, but more importantly would improve the UX of the cover picker slightly.
Comments

You could also use a phash to deduplicate files that are effectively the same, i.e. different resolutions of the same cover. I'd hash the image data only and not the metadata to avoid metadata causing differences. ImageMagick has a nice write up on the subject.
Good idea. Would be smart to periodically flush any unattached images as well to reduce storage costs.