Take the 2-minute tour ×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

I have a website where I am pulling a list of staff members from the Craft users. You can add individual fields to the users element, but it seems the image for the photo is incredibly small is size and lacking in quality.

Is there a way to change the size of the profile photo? Hopefully I can just apply an image transform on the user profile photo. Adding another field for a photograph seems redundant.

share|improve this question

1 Answer 1

up vote 8 down vote accepted

I found the answer on the Craft website under the UserModel section:

getPhotoUrl( size )

Returns a URL to the user’s photo at a given size in pixels (defaults to 100). You can also pass in "original" if you want to get a non-resized photo back.

Although this does answer my question, I feel the behavior between handling this "asset" compared to an actual native asset is a little cumbersome, especially considering if I wanted to apply an image transformation on the original file.

share|improve this answer
    
Feel free to nuke my edit, I just figured I'd quote the docs since I had to visit to see the answer you referred to. –  Matt Stein Jul 13 at 21:15
    
No way, thats a good edit. I will try to remember to do that from now on. Thank you for the edit Matt! –  Jason McCallister Jul 13 at 21:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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