We run all our images through a CDN to perform various manipulations. This works create for any image managed via assets, but I'm a bit stuck on any image that has a cpresources URL. In particular I'm running into this issue with profile photos which have a URL much like this:
http://www.mydomain.com/cpresources/userphotos/janedoe/100/JaneDoe.jpg
In the above, I just need to change the URL to something like http://cdn.mydomain.com/cpresources/userphotos/janedoe/100/JaneDoe.jpg
This image will then get downloaded from the www.mydomain.com host.
I did run into this issue with assets too tonight, where there was an issue with an image that didn't get moved into it's final destination, and ended up living in the temp folder, with a cpresources URL.
Is there any way to change this URL?