fission-codes / blog

Webnative blogging
Apache License 2.0
7 stars 1 forks source link

Image deduplication #12

Closed nichoth closed 3 years ago

nichoth commented 3 years ago

Summary

Should not save the same blob multiple times

Problem

The images are linked to a blog post, but it is possible that the image could be saved & the blog feed not updated. And that's fine, it just means you would have a stray image sitting in ipfs. In that case you would re-post the post.

Could make a call to see if the given image filename exists already in webnative.

Solution

You could use a hash of the image as the filename, that way it would automatically de-duplicate the images if you wrote the same one again when you re-post the post.

nichoth commented 3 years ago

ipfs already deduplicates blobs