Answers.Body: <p>Never too late to answer your own question.</p>
  
  <p>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.</p>
  
  <p><a href="https://docs.craftcms.com/v3/changes-in-craft-3.html#user-photos" rel="nofollow noreferrer">https://docs.craftcms.com/v3/changes-in-craft-3.html#user-photos</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-20T02:16:26.633Z
Answers.LastActivityDate: 2019-11-20T02:16:26.633Z
Answers.UserDisplayName: neekster
Body: <p>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:</p>
  
  <p><a href="http://www.mydomain.com/cpresources/userphotos/janedoe/100/JaneDoe.jpg" rel="nofollow noreferrer">http://www.mydomain.com/cpresources/userphotos/janedoe/100/JaneDoe.jpg</a></p>
  
  <p>In the above, I just need to change the URL to something like <a href="http://cdn.mydomain.com/cpresources/userphotos/janedoe/100/JaneDoe.jpg" rel="nofollow noreferrer">http://cdn.mydomain.com/cpresources/userphotos/janedoe/100/JaneDoe.jpg</a></p>
  
  <p>This image will then get downloaded from the www.mydomain.com host.</p>
  
  <p>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.</p>
  
  <p>Is there any way to change this URL?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-07T18:32:07.850Z
Comments.Text: Is there a reason you want to serve CP images from a CDN?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-08T03:40:30.900Z
Comments.Text: Yes, for starters we are use to to do face detection, so users with no editing skills can upload any old photo, we then have it crop it intelligently to suit our design, the requirements for that crop can be different depending on the page we are displaying it on, CDN (imgix in this case) handles this perfectly. To be clear though, this is only uploaded image, control panel images specific to craft we don't care about. There are a number of other things we use it for but this is the key one in this instance. imagemacick is dead to me
Comments.UserDisplayName: neekster
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-08T17:55:27.170Z
Comments.Text: Oh, so it's more than just a CDN and it's not for _all_ cpresources just uploaded assets.  I think you'd have to do this through a custom plugin that integrates with Imgix.
Comments.UserDisplayName: Brad Bell
Tags: <assets><config>
Title: Change public URL for user photos
ThreadText: # Change public URL for user photos
  
  (Asked by: username_0 on 2016-04-07)
  
  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?
  
  **Tags:** assets, config
  
  > **Comments:**
  > **username_1**: Is there a reason you want to serve CP images from a CDN?  
  > **username_0**: Yes, for starters we are use to to do face detection, so users with no editing skills can upload any old photo, we then have it crop it intelligently to suit our design, the requirements for that crop can be different depending on the page we are displaying it on, CDN (imgix in this case) handles this perfectly. To be clear though, this is only uploaded image, control panel images specific to craft we don't care about. There are a number of other things we use it for but this is the key one in this instance. imagemacick is dead to me  
  > **username_1**: Oh, so it's more than just a CDN and it's not for _all_ cpresources just uploaded assets.  I think you'd have to do this through a custom plugin that integrates with Imgix.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-11-20. Score: 1 | Accepted answer
  
  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>
  
  
  ---
  
  