When uploading user profile images, Craft forces you to crop it to a square. Is there a way to keep the images untouched instead?
Asked
Active
Viewed 225 times
2 Answers
4
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
carlcs
- 36,220
- 5
- 62
- 139
-
Lol, actually I just posted this to the question below yours, but it fits here too. :D – carlcs Jul 24 '14 at 11:58
3
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.
Jason McCallister
- 2,336
- 14
- 27
-
But this "original" is still the rectangularly cropped version of the original "original", Jason? – carlcs Jul 24 '14 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 '14 at 18:33
-
1I tried this already, you get the cropped version with the original quality. – Daniel Jul 24 '14 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 '14 at 19:27