Hayden~
If I knew how to build a CDN that worked for this I probably would take a crack at it. Maybe more an Instagram thing with the quality & features of Flickr though?
2 2
Samuel
@samuel.fm
start here:
Samuel@samuel.fm· 5 Feb 2025
hey app devs! want to use images from the ATmosphere but want better quality, or transforms, or animated gifs? here's an atproto image CDN in 88 lines of code (using @cloudflare.social Images) github.com/mozzius/atpr...
GitHub - mozzius/atproto-pictures: simple atproto image cdn
simple atproto image cdn. Contribute to mozzius/atproto-pictures development by creating an account on GitHub.
github.com
1 1 6
Hayden~
That feels a little inefficient unless I’m misunderstanding how the CIDs work, wouldn’t that mean I’d have to pull the blob off the PDS twice? Assuming I stick with CF Images that is. Once for verification and again with transformations?
1
Hayden~
So pull the blob once, cache it forever? I suppose realistically the blob CID shouldn’t change over time…
1 1
Samuel
yeah that’s kinda exactly the point of a CID. if the blob changes it’ll have a different CID
3