Avatar

Avatar Size Need To Be Exactly Square? (General)

by Auge ⌂, Wednesday, February 25, 2015, 14:22 (3342 days ago) @ Magma

Hello

In the admin I have avatars set to 150x150

To clarify that: You set the maximal values for width and height of the avatar image.

but when people upload their avatar depending on the size of their picture the avatar can output at 150x80, 150x110 etc

Works as designed.

How can I make it so images uploaded for avatars are exactly a square 150x150?

That works as Milo described it. If an avatar was uploaded (image1), the script resize it, if necessary, to a max of 150 in width and/or height. After that step, you (the script) have to create a new image (image2) with a size of 150x150 pixels and copy the uploaded and resized image (image1) into your new generated (image2).

This is not part of the script.

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!


Complete thread:

 RSS Feed of thread