Does blossom compress media?

Reply to this note

Please Login to reply.

Discussion

It claims that server shouldn't change the file content.

https://github.com/hzrd149/blossom/blob/master/buds/bud-01.md#put-upload---upload-blob

No because the hash would change, but nip96 does allow it

But the Blossom only a spec. Maybe some implements will add compress function to handle images.

no, but there isn't anything stopping a blossom server from offering an alternative endpoint like `/optimize` that would compress media and return the new hash

The important part IMO is that the users consent to the media being optimized, and that its not the default