[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
Recognised Extension Developer
Posts: 1774
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

[3.2][RC] Avatar Resize on upload

Post by Ger » Thu Feb 15, 2018 10:01 am

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:
-Available for custom work-

dingus33
Registered User
Posts: 30
Joined: Fri Sep 29, 2017 11:11 am

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

Post by dingus33 » Sun Mar 25, 2018 5:19 am

nice, thanks for updating core.avatar_driver_upload_move_file_before

User avatar
Galandas
Registered User
Posts: 731
Joined: Thu Jul 23, 2009 4:11 pm
Location: Italy
Name: Rey
Contact:

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

Post by Galandas » 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.
English is not my native language My CDB Contributions My RC extensions

User avatar
Ger
Recognised Extension Developer
Posts: 1774
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

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

Post by Ger » Mon Mar 26, 2018 2:00 pm

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:
-Available for custom work-

User avatar
Ger
Recognised Extension Developer
Posts: 1774
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

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

Post by Ger » Tue Mar 27, 2018 9:03 am

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:
-Available for custom work-

User avatar
EFiNSTORM
Registered User
Posts: 159
Joined: Fri Dec 26, 2008 4:09 am
Location: localhost

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

Post by EFiNSTORM » Wed Apr 04, 2018 2:07 am

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
Recognised Extension Developer
Posts: 1774
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

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

Post by Ger » Wed Apr 04, 2018 6:55 am

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:
-Available for custom work-

koraldon
Registered User
Posts: 483
Joined: Sat Jun 30, 2007 12:42 pm

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

Post by koraldon » Wed Apr 18, 2018 7:55 pm

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
Recognised Extension Developer
Posts: 1774
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

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

Post by Ger » Thu Apr 19, 2018 8:07 am

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:
-Available for custom work-

koraldon
Registered User
Posts: 483
Joined: Sat Jun 30, 2007 12:42 pm

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

Post by koraldon » Thu Apr 19, 2018 7:08 pm

Thanks, working great.

User avatar
Ger
Recognised Extension Developer
Posts: 1774
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

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

Post by Ger » 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.
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:
-Available for custom work-

User avatar
</Solidjeuh>
Registered User
Posts: 1098
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

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

Post by </Solidjeuh> » Fri Sep 14, 2018 2:20 pm

Works good in 3.2.3! Thank you ;)
We offer fun HTML5 games for young and old.
Register a free account & enjoy all functions!
Save your score, challenge other members or play along with our tournaments.


~~~ https://www.solidjeuh.be ~~~

User avatar
jackennils
Registered User
Posts: 191
Joined: Mon Jun 01, 2009 7:48 pm

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

Post by jackennils » Sat Sep 15, 2018 8:03 pm

Works perfect! Thanks so much!

User avatar
3Di
Registered User
Posts: 12998
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Sat Sep 15, 2018 8:38 pm

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
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate

:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
Ger
Recognised Extension Developer
Posts: 1774
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

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

Post by Ger » Mon Sep 17, 2018 8:40 am

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:
-Available for custom work-

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: dio33, Toxyy and 33 guests