Page 1 of 3

[3.2][RC] Avatar Resize on upload

Posted: Thu Feb 15, 2018 10:01 am
by Ger
Extension Name: Avatar Resize on upload
Author: Ger

Extension Description: This extension resizes uploaded avatars that exceed allowed dimensions to those maximum settings.

Extension Version: 1.0.0-RC

Requirements: Extension Download: https://github.com/GerB/avatarresize

Translations:
No translation needed

Re: [3.2][BETA] Avatar Resize on upload

Posted: Sun Mar 25, 2018 5:19 am
by dingus33
nice, thanks for updating core.avatar_driver_upload_move_file_before

Re: [3.2][BETA] Avatar Resize on upload

Posted: Mon Mar 26, 2018 3:20 am
by Galandas
this is very convenient because it is very annoying to resize an avatar on the PC, or find a suitable one on the web, so and faster and easier for users.

Re: [3.2][BETA] Avatar Resize on upload

Posted: Mon Mar 26, 2018 2:00 pm
by Ger
Galandas wrote:
Mon Mar 26, 2018 3:20 am
this is very convenient because it is very annoying to resize an avatar on the PC, or find a suitable one on the web, so and faster and easier for users.
That's indeed the purpose of this extension. It was inspired by this idea from SalazarAG.

Re: [3.2][BETA] Avatar Resize on upload

Posted: Tue Mar 27, 2018 9:03 am
by Ger
3.2.3-RC1 has been released. Once updated, the file change as posted in the topic start isn't needed anymore.

Re: [3.2][BETA] Avatar Resize on upload

Posted: Wed Apr 04, 2018 2:07 am
by EFiNSTORM
Hey.

Everything works but for some odd reason resizing of gif's don't seem to work. The image will resize but is no longer a gif.

Any idea how to fix? I am running on PHP 7

Re: [3.2][BETA] Avatar Resize on upload

Posted: Wed Apr 04, 2018 6:55 am
by Ger
Can you give me an example of both the original as the resized image?

Is ImageMagick enabled?

Re: [3.2][BETA] Avatar Resize on upload

Posted: Wed Apr 18, 2018 7:55 pm
by koraldon
Hi,
I have tried to upload an avatar with filesize larger than allowed but it blocks me - Does this extension only changes the dimension but not the size?
It seems much less useful this way - if a user knows how to decrease size he most probably can also decrease dimensions...

Re: [3.2][BETA] Avatar Resize on upload

Posted: Thu Apr 19, 2018 8:07 am
by Ger
The filesize shrinks upon resizing the dimensions. The simplest approach is to allow larger avatar filesize (checks happens at a point without an event to hook into) but limit the dimensions.

Re: [3.2][BETA] Avatar Resize on upload

Posted: Thu Apr 19, 2018 7:08 pm
by koraldon
Thanks, working great.

Re: [3.2][RC] Avatar Resize on upload

Posted: Fri Sep 14, 2018 11:53 am
by Ger
Now 3.2.3 is finally released, I can up this to RC stage. If no issues arise, I'll submit this to the CDB soon.

Re: [3.2][RC] Avatar Resize on upload

Posted: Fri Sep 14, 2018 2:20 pm
by </Solidjeuh>
Works good in 3.2.3! Thank you ;)

Re: [3.2][RC] Avatar Resize on upload

Posted: Sat Sep 15, 2018 8:03 pm
by jackennils
Works perfect! Thanks so much!

Re: [3.2][RC] Avatar Resize on upload

Posted: Sat Sep 15, 2018 8:38 pm
by 3Di
Ger wrote:
Fri Sep 14, 2018 11:53 am
Now 3.2.3 is finally released, I can up this to RC stage. If no issues arise, I'll submit this to the CDB soon.
You might want to remove this code
https://github.com/GerB/avatarresize/bl ... #L195-L199
since "safe_mode" has been removed from PHP in 5.4

Re: [3.2][RC] Avatar Resize on upload

Posted: Mon Sep 17, 2018 8:40 am
by Ger
Thanks for mentioning that, I hadn't thought of that