ssbc / ssb-blob-files

3 stars 1 forks source link

Support browser-agnostic file format #16

Open cblgh opened 4 years ago

cblgh commented 4 years ago

Hi hi! @cryptix and i are hammering away at an oasis upgrade (%izbqRVJQ1brHjQp3wcL/D6b/nTYPQ2kndzesT/tIdNM=.sha256)

We realized we wanted to remove exif data from uploaded jpegs, and cryptix came across this repo. Which is great! But it looks like it solely relies on file input events. As it is, I borrowed the exif dep and the orientation-preserving implementation.

But it would be nice if we didn't have to copy pasta 🍝, and it would be a big benefit to make use of the encrypted blobs functionality.

Proposal: To tweak ssb-blob-files to instead lean on the other format that piexif consumes, namely binary text strings buffer.toString('binary').

arj03 commented 4 years ago

~Bep bep afk but wanted to add that I have two patches for this repo here https://github.com/arj03/ssb-browser-core/tree/master/patches that allows it to run in the browser.~

arj03 commented 4 years ago

Had a look at the diff for oasis and seems like my comment from above does not really help you, so please ignore ;) but yeah might be great to split this into two modules.

stale[bot] commented 3 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?