[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!
Ideas Centre
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
wads24
Registered User
Posts: 665
Joined: Fri Jun 10, 2005 4:44 am
Name: James

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

Post by wads24 »

Hasn't worked since updating to 3.3.4
Thanks in advance for a reply.
User avatar
ivailo95
Registered User
Posts: 1074
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

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

Post by ivailo95 »

how this ext work?
where is the option to resize avatars
For REALLY good and VERY cheap hosting CLICK HERE
Watch "Lost in a random" game, it's the best
User avatar
Ger
Registered User
Posts: 2108
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 »

There's no option for it, it just resizes to the ACP max avatar size settings when a user uploads an avatar that's bigger than those settings.
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
BBBenj
Registered User
Posts: 164
Joined: Mon Jun 02, 2014 8:05 pm
Name: Benjamin
Contact:

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

Post by BBBenj »

Hi!

It works as intended in phpBB 3.3.5 / PHP 7.3.
User avatar
Danny Wyatt
Registered User
Posts: 115
Joined: Sat Jun 04, 2022 9:09 am
Name: Danny Wyatt
Contact:

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

Post by Danny Wyatt »

It's working on phpBB 3.3.7
PHP 7.4

I saw someone having an issue installing it. please note that when you download it from GitHub, the folder is called avatarresize-master so you need to remove the "-master" and then include it in a folder called "ger".

Maybe someone else has mentioned this, but the maximum size of the avatar needs to be increased:
ACP > General > Avatar Settings > Maximum avatar file size.
In my particular case, I don't want people to worry about looking at the value in Bytes and figure it out what that is so I just set the file size to 0.
That way, the message with the size will not show up at all when they are adding the avatar.

Hope this helps other users.
DANNY WYATT - Musician, music producer, songwriter, DJ

🔗 Official Website: https://iamdannywyatt.com
📸 Instagram: https://instagram.com/iamdannywyatt
inovermyhead
Registered User
Posts: 2
Joined: Wed Feb 23, 2022 5:08 am

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

Post by inovermyhead »

RIP it doesn't work if you have the round avatar extension installed on the same board :cry:

Anyone know of a workaround?
User avatar
Ger
Registered User
Posts: 2108
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 »

I don't know what that extension does, but if it makes an avatar rounded at upload, that would probably conflict since both extensions try to manipulate the file during upload.

I would personally just use a border-radius to display a rounded avatar on rendering. That way, you leave the original file available when you decide to change your style sometime in the future. That wouldn't conflict with any extension.
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
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

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

Post by david63 »

Ger wrote: Fri Aug 19, 2022 5:27 pm that would probably conflict since both extensions try to manipulate the file during upload.
Assuming that this is event driven remember that you can force the order that events run
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
ivailo95
Registered User
Posts: 1074
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

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

Post by ivailo95 »

Ger wrote: Thu Nov 11, 2021 9:23 am There's no option for it, it just resizes to the ACP max avatar size settings when a user uploads an avatar that's bigger than those settings.
i see doesn't resize my image
https://i.imgur.com/xWpUnLy.jpg this is what i want to upload as avatar
Attachments
Screenshot 2022-09-18 17.35.25.png
Screenshot 2022-09-18 19.35.07.png
For REALLY good and VERY cheap hosting CLICK HERE
Watch "Lost in a random" game, it's the best
User avatar
Ger
Registered User
Posts: 2108
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 »

The error message is pretty clear: you have limited the file size, the image is bigger than that. Just remove that limitation, resizing on upload should never result in extreme file sizes.
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
halil16
Registered User
Posts: 1284
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil
Contact:

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

Post by halil16 »

Thank you. Anyone using this in live board? strictly required an extension. I want to use.
* Hire me at fiverr for your phpBB board.
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
I'm learning English...
Contributions: #Hashtag, Elegance, Latte
deninho32
Registered User
Posts: 186
Joined: Tue May 21, 2019 8:57 am
Contact:

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

Post by deninho32 »

halil16 wrote: Fri Sep 23, 2022 3:48 pm Thank you. Anyone using this in live board? strictly required an extension. I want to use.
Works really well. I have been using this one on my live board for more than a year now.
phpBB 3.3.7 | PHP Version 8.2.4 | Milk Theme
User avatar
halil16
Registered User
Posts: 1284
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil
Contact:

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

Post by halil16 »

deninho32 wrote: Sat Sep 24, 2022 3:32 pm
halil16 wrote: Fri Sep 23, 2022 3:48 pm Thank you. Anyone using this in live board? strictly required an extension. I want to use.
Works really well. I have been using this one on my live board for more than a year now.
Thank you very much for the information. I will upload it right away. :) A much needed extension.
* Hire me at fiverr for your phpBB board.
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
I'm learning English...
Contributions: #Hashtag, Elegance, Latte
User avatar
halil16
Registered User
Posts: 1284
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil
Contact:

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

Post by halil16 »

two problems occurred. The first one turns the pictures I uploaded from the tablet sideways. But I'm not sure if this is photo based.

Second, it gives an error about the size when uploading some photos. It refers to the functions file in the phpbB directory.
* Hire me at fiverr for your phpBB board.
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
I'm learning English...
Contributions: #Hashtag, Elegance, Latte
User avatar
Ger
Registered User
Posts: 2108
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 »

"an error". I can't help if you don't specify.

Image rotation is a general phpbb upload issue.
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-
Post Reply

Return to “Extensions in Development”