Thank you @cel for the guidance! I revised my PR to first accumulate the image buffer before trying to rotate it, and tried to clean up my code a bit as well.
Ah, I didn't realize that multiple blobs came through the stream. I can revise.
If the blob is no JPEG (or if just no EXIF markers are found),
erris truthy and the original blob is passed on.
Yes, it grows the deptree a fair bit. I went for simplicity of implementation over size efficiency. If we wanted to keep patchfoo nice and small I bet we could write a much more lean module that does this, using e.g.
According to MDN it's still experimental; it claims that only Firefox is supported. It sounds like a Chromium priority, but no updates on its progress since March.
I've been working on ssb-inbox, which is a client-agnostic inbox plugin that clients like patchfoo could integrate with.
Built with git-ssb-web