[3.2][RC] Avatar Resize on upload

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

[3.2][RC] Avatar Resize on upload

Post 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
Last edited by Ger on Fri Sep 14, 2018 11:52 am, edited 1 time in total.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
dingus33
Registered User
Posts: 136
Joined: Fri Sep 29, 2017 11:11 am

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

Post by dingus33 »

nice, thanks for updating core.avatar_driver_upload_move_file_before
User avatar
Galandas
Registered User
Posts: 774
Joined: Thu Jul 23, 2009 4:11 pm
Location: Italy
Name: Rey

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

Post 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.
English is not my native language My CDB Contributions My RC extensions
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

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

Post 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.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

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

Post by Ger »

3.2.3-RC1 has been released. Once updated, the file change as posted in the topic start isn't needed anymore.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
EFiNSTORM
Registered User
Posts: 164
Joined: Fri Dec 26, 2008 4:09 am
Location: localhost

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

Post 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
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

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

Post by Ger »

Can you give me an example of both the original as the resized image?

Is ImageMagick enabled?
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
koraldon
Registered User
Posts: 530
Joined: Sat Jun 30, 2007 12:42 pm

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

Post 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...
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

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

Post 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.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
koraldon
Registered User
Posts: 530
Joined: Sat Jun 30, 2007 12:42 pm

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

Post by koraldon »

Thanks, working great.
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

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

Post 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.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm

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

Post by </Solidjeuh> »

Works good in 3.2.3! Thank you ;)
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

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

Post by jackennils »

Works perfect! Thanks so much!
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

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

Post 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
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Ger
Registered User
Posts: 2117
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100

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

Post by Ger »

Thanks for mentioning that, I hadn't thought of that
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-

Return to “Extensions in Development”