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.

When uploading user profile images, Craft forces you to crop it to a square. Is there a way to keep the images untouched instead?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

You could add a custom asset field for the users' profile images and hide the default one in the CP.

Here's a plugin to do this: Control Panel CSS by Lindsey D

share|improve this answer
    
Lol, actually I just posted this to the question below yours, but it fits here too. :D –  carlcs Jul 24 at 11:58
    
Great, thanks a lot! –  Daniel Jul 24 at 12:34

Maybe not the answer you are looking for, but I asked a similar question. I needed to grab the original size of the user uploaded images.

Change the size of a users profile photo?

You can just use getPhotoUrl('original') when calling the images on the front end.

This doesn't give you an 'untouched' version of the image but Craft stores the original and makes it easy to call.

share|improve this answer
    
But this "original" is still the rectangularly cropped version of the original "original", Jason? –  carlcs Jul 24 at 15:36
    
I will have to try that this afternoon, but I believe the original is the actual original and they crop it for the CP only. –  Jason McCallister Jul 24 at 18:33
1  
I tried this already, you get the cropped version with the original quality. –  Daniel Jul 24 at 19:24
    
Ahh, maybe a request to p&t to change this behavior. The other answer posted here is the same method I used for a staff listing. –  Jason McCallister Jul 24 at 19:27

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.