Change public URL for user photos 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?
Never too late to answer your own question.

This is easily resolved now as Craft 3 stores user photos as assets, you just need to assign the CDN URL to the public URL field in Assets.

https://docs.craftcms.com/v3/changes-in-craft-3.html#user-photos