[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
Hartenheer
Registered User
Posts: 662
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

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

Post by Hartenheer » Tue Sep 18, 2018 7:46 am

Only turn on?
No further settings needed?
Sorry English is not my native language :oops:


Image

User avatar
Ger
Recognised Extension Developer
Posts: 1737
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 » Tue Sep 18, 2018 8:10 am

That's correct. You might only want to raise your max avatar filesize to allow for larger files on upload. While resizing, the resulting filesize will shrink to reasonable dimensions anyway.
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
Hartenheer
Registered User
Posts: 662
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

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

Post by Hartenheer » Tue Sep 18, 2018 8:14 am

Ger wrote:
Tue Sep 18, 2018 8:10 am
That's correct. You might only want to raise your max avatar filesize to allow for larger files on upload. While resizing, the resulting filesize will shrink to reasonable dimensions anyway.
What is an acceptable size? I have an idea of the bites and size of the images
Sorry English is not my native language :oops:


Image

User avatar
Ger
Recognised Extension Developer
Posts: 1737
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 » Tue Sep 18, 2018 9:10 am

Anything your host allows as upload_max_filesize. If you have no idea or actually don't care, you can set it to 0. In that case it's just limited by your host. In that case you can only stumble upon a problem with hitting the memory limit if you host has a ridiculous high upload_max_filesize combined with a low memory limit.
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
Hartenheer
Registered User
Posts: 662
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

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

Post by Hartenheer » Tue Sep 18, 2018 9:13 am

Ger wrote:
Tue Sep 18, 2018 9:10 am
Anything your host allows as upload_max_filesize. If you have no idea or actually don't care, you can set it to 0. In that case it's just limited by your host. In that case you can only stumble upon a problem with hitting the memory limit if you host has a ridiculous high upload_max_filesize combined with a low memory limit.
Thanks for your comment
Sorry English is not my native language :oops:


Image

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

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

Post by jackennils » Tue Sep 18, 2018 9:27 am

Just a thought:

I have set the avatar max size to 160x160 pixels. Let's say, I do upload an avatar sized 640x320 pixels. Then your extension will resize it to 320x160 pixels which is totally correct.

But what I would love to see is an option to choose the resizing method. Either just to 320x160 px or to the exact maximum avatar size of 160x160 px. And if the aspect ratio is not corresponding to the one of the max avatar size set in the ACP options, then to cut out the middle part of the image.

So basically upload 640x320, resize to 320x160 and cut out the middle part to make it 160x160.

I hope you understand what I'm thinking about. :)

User avatar
Ger
Recognised Extension Developer
Posts: 1737
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 » Tue Sep 18, 2018 10:21 am

I understand, but I think it will produce unexpected results when images are arbitrarily cropped.I think it would be better to resize your example to 160x80px. It that's not to the user's liking, he or she can just crop it to their wishes on their computer/phone.
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
jackennils
Registered User
Posts: 182
Joined: Mon Jun 01, 2009 7:48 pm

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

Post by jackennils » Wed Sep 19, 2018 9:01 pm

You're probably right. :o :)

Raheem
Registered User
Posts: 82
Joined: Thu Feb 09, 2017 7:02 pm
Location: Egypt
Contact:

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

Post by Raheem » Thu Sep 20, 2018 9:26 pm

Hi,

This extension will work with phpBB 3.2.2? I still not updated to 3.2.3

Thanks.

User avatar
</Solidjeuh>
Registered User
Posts: 1020
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> » Thu Sep 20, 2018 9:28 pm

Raheem wrote:
Thu Sep 20, 2018 9:26 pm
Hi,

This extension will work with phpBB 3.2.2? I still not updated to 3.2.3

Thanks.
Ger wrote:
Thu Feb 15, 2018 10:01 am
[*]You need at least phpBB 3.2.3-RC1 for this extension to work or manually add the following patch to your phpBB 3.2 installation:
https://github.com/phpbb/phpbb/pull/5127/files
So no. You will need to update to 3.2.3 for this extension.
Or do the manual patch.
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 ~~~

Raheem
Registered User
Posts: 82
Joined: Thu Feb 09, 2017 7:02 pm
Location: Egypt
Contact:

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

Post by Raheem » Fri Sep 21, 2018 6:37 am

</Solidjeuh> wrote:
Thu Sep 20, 2018 9:28 pm
So no. You will need to update to 3.2.3 for this extension.
Or do the manual patch.
I added 'file' to this array and it worked fine with 3.2.2, thanks :)

@Ger, thanks for this extension.

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: Naguissa, Praggle, Siava, teebling and 27 guests