How are image links generated?

That’s the exact same file (cue the filename), except your 1st link is on the CDN and the 2nd link is on S3 (the storage we use here on meta).