XF 2.2 Will changing @_avatarBaseSize: in setup.less prevent resizing through API?

BubbaLovesCheese

Active member
If I wish to upload a 100x100 px Avatar through the API, will changing @_avatarBaseSize: 96px; to @_avatarBaseSize: 100px; in setup.less mean that the avatar will not be resized in the "m" folder?

Code:
// AVATARS
@_avatarBaseSize: 100px;              // originally => @_avatarBaseSize: 96px;
@avatar-xxs: (@_avatarBaseSize) / 4;
@avatar-xs:  (@_avatarBaseSize) / 3;
@avatar-s:   (@_avatarBaseSize) / 2;
@avatar-m:   (@_avatarBaseSize);
@avatar-l:   (@_avatarBaseSize) * 2;
@avatar-o:   (@_avatarBaseSize) * 4;

Basically, I would like all my uploaded 100px avatars to maintain their native 100x100 dimension.
 
Okay, after testing the answer is no.

So follow-up question: Where is the setting that controls the default size of uploaded avatars?

If anyone knows...

Thanks!
 
Wow, that is exactly it! Thanks!

So question.... How does the uploading actually work?

I mean, I changed 'm' => 100, and then I uploaded a 100x100 avatar. The file in the 'm' folder is now 100 px. But it is actually a different file. The MD5 and files size has changed from the original, even thought the size and dimensions are the same. It seems that even if I upload a files with native dimensions and size, it is still processed. Is that correct?

Are all the upload files processed, or is there a folder that can store the original image if the dimensions are the same?

Thanks!
 
Top Bottom