Resizing images off server

What problem are you trying to solve?

with exactly the same filenames? And even then, you could have issues with the file SHAs.

I think the thing to do will be to get Discourse to do the resizes the way that you want them.