1

I am using the profile photo on users' posts (author image) and I would like to provide a link to download a larger image. I am currently able to get the "full" size of the cropped image like this:

<img src="{{ entry.author.getPhotoUrl('original') }}" alt="{{ entry.title }}">

Is there a way to get to the image that looks like is stored here:

/craft/storage/userphotos/*
  • 1
    I don't believe so. You might be able to do something creative with a plugin, but I'm not entirely certain that would work either. User Profile images are a special case, since they're not regular Assets. if I remember correctly, I believe that those might get transitioned to regular Assets in Craft 3. (I say that with about 60% confidence.) – Lindsey D Sep 30 '16 at 23:27
2

As you've discovered, you can get the full cropped version of the image with author.getPhotoUrl('original'), but Craft doesn't keep a copy of the original un-cropped version of the image around.

And Lindsey is more than 60% correct... user photos are 1st class Asset citizens in Craft 3, making this less awkward.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.