10

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.

Jason McCallister
  • 2,336
  • 14
  • 27

1 Answers1

15

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.

Jason McCallister
  • 2,336
  • 14
  • 27