Auto resize attachments images

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Scam Warning
User avatar
Stoker 4.0
Registered User
Posts: 1590
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Auto resize attachments images

Post by Stoker 4.0 »

Im wondering why there isnt any auto resize the file of uploaded images to phpBB 3.1?
Would be nice if attachments was resized to the maximum filesize set in ACP.

Everybody can use this. Actually I think it should be standard in phpBB. But it probably complicated since its not.
Anyway, anybody up to this?
Last edited by Stoker 4.0 on Thu Feb 04, 2016 12:11 pm, edited 1 time in total.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6835
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: Auto resize attachments images

Post by HiFiKabin »

It exists in Vanilla phpBB3.1.x

Just set the maximum size in Attachment Settings

Image
image post
User avatar
Stoker 4.0
Registered User
Posts: 1590
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: Auto resize attachments images

Post by Stoker 4.0 »

Sorry, I meant the filesize. If you set it to 1mb and users try to upload a 4mb image it should be resized to 1mb.
There is a lot of users who cant figure out how to resize.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
RMcGirr83
Former Team Member
Posts: 22099
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Auto resize attachments images

Post by RMcGirr83 »

I think the automatic down sizing of file size for image only uploads maybe too complex to incorporate since the upload field is not only used solely for image file types. It will be too difficult since a lot of other file of types(documents,spreadsheets,plain,raw...etc..) can be used by the upload field.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
Stoker 4.0
Registered User
Posts: 1590
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: Auto resize attachments images

Post by Stoker 4.0 »

So you actually would have to split the function in 2.
1 for files and 1 for images = 2 upload buttons.
~ The greatest achievement in life is to inspire ~
Regards Stoker
Swanny
Registered User
Posts: 486
Joined: Sun Apr 14, 2002 2:11 am
Location: Canada

Re: Auto resize attachments images

Post by Swanny »

It was tough for me to get it working but it does. The problem I had was my path to ImageMagick was blank or wrong. Verify that path, change your other settings and you should be OK. I just had a thread like this going, look for the plupload topic that was just active a few days ago for details.
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil

Re: Auto resize attachments images

Post by Volksdevil »

My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
Stoker 4.0
Registered User
Posts: 1590
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: Auto resize attachments images

Post by Stoker 4.0 »

Thanks, its working now.
It was an open_basedir misconfig on my server.
~ The greatest achievement in life is to inspire ~
Regards Stoker

Return to “Extension Requests”