[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!
Scam Warning
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: 780
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman

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

Post by Hartenheer »

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

https://bierfijnproevers.nl/bierforum
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 »

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:

Kinderpraktijk SensIQ

-Don't PM me for support-
User avatar
Hartenheer
Registered User
Posts: 780
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman

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

Post by Hartenheer »

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:
regards: Willem

https://bierfijnproevers.nl/bierforum
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 »

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:

Kinderpraktijk SensIQ

-Don't PM me for support-
User avatar
Hartenheer
Registered User
Posts: 780
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman

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

Post by Hartenheer »

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:
regards: Willem

https://bierfijnproevers.nl/bierforum
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 »

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
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 »

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:

Kinderpraktijk SensIQ

-Don't PM me for support-
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 »

You're probably right. :o :)
Raheem
Registered User
Posts: 84
Joined: Thu Feb 09, 2017 7:02 pm
Location: Egypt

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

Post by Raheem »

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: 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> »

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.
Raheem
Registered User
Posts: 84
Joined: Thu Feb 09, 2017 7:02 pm
Location: Egypt

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

Post by Raheem »

</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.
jgs240
Registered User
Posts: 8
Joined: Wed Oct 17, 2018 7:53 pm

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

Post by jgs240 »

I must be doing something goofy/wrong. I downloaded, unzipped and then put the contents of the zip file into the /phpbbhome/ext/ger/ directory with a few other of your extensions. But after reloading the "customize" tab in the ACP I don't see the extension in the list of extensions waiting to be enabled.

What could I be missing?
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> »

jgs240 wrote: Thu Oct 25, 2018 3:02 pm I must be doing something goofy/wrong. I downloaded, unzipped and then put the contents of the zip file into the /phpbbhome/ext/ger/ directory with a few other of your extensions. But after reloading the "customize" tab in the ACP I don't see the extension in the list of extensions waiting to be enabled.

What could I be missing?
It should be: /ext/ger/avatarresize/

Image
jgs240
Registered User
Posts: 8
Joined: Wed Oct 17, 2018 7:53 pm

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

Post by jgs240 »

Thank you, that was the fix.
Affin
I've Been Banned!
Posts: 254
Joined: Fri May 25, 2018 9:52 pm

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

Post by Affin »

When is it ready?

Return to “Extensions in Development”