Server side image resize on upload

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Anti-Spam Guide
superj707
Registered User
Posts: 1136
Joined: Thu Feb 26, 2009 12:20 am

Re: Server side image resize on upload

Post by superj707 »

I have the ultimate phpbb image server on my website.
It's produced by software engineer Ryan Tharp at www.customwebapps.com

It will resize the image, while preserving the original on the server. Also it has compression and watermark.
You can use it on your phpbb installation if you like feel free to contact him.
best of luck
J
faulksie47
Registered User
Posts: 78
Joined: Sat Dec 25, 2010 10:11 am
Location: Reading UK and France

Re: Server side image resize on upload

Post by faulksie47 »

4_seven wrote:How does this in your part look like:

Code: Select all

       $limite_largeur = "800px";
       $limite_hauteur = "600px"; 
thank you for reply, it looks the same in my edits

@ superj707, thank you for link, would prefer to try and get this mod working on my site as it saves the image on my server to smaller size, but will check out the link, thank you.
faulksie47
Registered User
Posts: 78
Joined: Sat Dec 25, 2010 10:11 am
Location: Reading UK and France

Re: Server side image resize on upload

Post by faulksie47 »

uodate, i have just tried this and it seems to now be good

Code: Select all

           $limite_largeur = "800";
           $limite_hauteur = "600"; 
maybe it was my mistake to have value 800px and 600px ?
romeo_piter
Registered User
Posts: 83
Joined: Mon Nov 09, 2009 7:11 pm
Location: Russia

Re: Server side image resize on upload

Post by romeo_piter »

Hi.
Using this modification for resize on my forum and experiencing some problem with it.

This mod overrides standart restrictions on sizes of files set in ACP.

Is it possible to make this mod work only after checking the size of a file?

It became a problem because some users try to post too large files (4000*5000 and even larger).
Dmnkly
Registered User
Posts: 19
Joined: Fri Jul 11, 2008 8:26 pm

Re: Server side image resize on upload

Post by Dmnkly »

I've been messing around, trying to get this mod to work... I think I've put everything in its proper place, but I keep getting the following error whenever I try to upload an image:

Image

Any idea what I'm doing wrong?

Thanks!
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Server side image resize on upload

Post by 4_seven »

may you add a .htaccess, where its not allowed on your server?
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Server side image resize on upload

Post by 4_seven »

or a simple edit error..
Current Mods | Mod Base | php(BB) programming | No help via PM
Dmnkly
Registered User
Posts: 19
Joined: Fri Jul 11, 2008 8:26 pm

Re: Server side image resize on upload

Post by Dmnkly »

I don't think it's an .htaccess error... I haven't messed with that at all. Permissions for posting.php are as they should be (644). I don't get the error when posting without a photo or posting a photo that's under the maximum size listed. It's just when I attempt to add an attachment that should be scaled down that I get the error.

I'll check my cut and paste one more time to make sure I didn't mess that up somehow, but I've looked it over a few times already.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Server side image resize on upload

Post by 4_seven »

Current Mods | Mod Base | php(BB) programming | No help via PM
Warwick Chapman
Registered User
Posts: 14
Joined: Mon Dec 31, 2012 2:18 pm

Re: Server side image resize on upload

Post by Warwick Chapman »

Warning, the cut and paste is not perfect. Make sure the resulting code is sane. If you get an error like the screenshot above, check the web server error log and find the line of code with the error specified and correct the formatting.
rondembo
Registered User
Posts: 100
Joined: Mon Dec 08, 2008 6:36 pm
Location: Israel

Re: Server side image resize on upload

Post by rondembo »

Works Great Thank you :D
forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: Server side image resize on upload

Post by forforce »

Hi , I`m noob and I have a phpbb3.0.12 installed on my server and I would need a mod like this very much. Can somebody tell me please exactly what to do to make it work for my version of phpbb? Thanks in advance.

EDIT - Ok, I made it work by myself but now I have another problem... If I delete posts with images , the posts are getting deleted but the images remain in /files folder and I have to delete them manually . Any help for this?! Thanks in advance.

EDIT 2 - Everything is ok, after a few hours, I could find those files in orphane files in ACP and I could delete them from there. ;) . I love this script! Thank you.
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .
nine4gmc
Registered User
Posts: 23
Joined: Tue Sep 17, 2013 7:46 am

Re: Server side image resize on upload

Post by nine4gmc »

forforce wrote:Hi , I`m noob and I have a phpbb3.0.12 installed on my server and I would need a mod like this very much. Can somebody tell me please exactly what to do to make it work for my version of phpbb? Thanks in advance..
You did better than me, I can't figure out the first step. Any help for a complete noob is appreciated!
forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: Server side image resize on upload

Post by forforce »

Well, all you have to do is to edit the files like is say in the first page and all is ok ;) .. no problems till now.
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .
nine4gmc
Registered User
Posts: 23
Joined: Tue Sep 17, 2013 7:46 am

Re: Server side image resize on upload

Post by nine4gmc »

Easy for you, I can not find the "functions_upload.php" file to edit, step one. I mentioned I am new, any help would be appreciated.
Locked

Return to “[3.0.x] MOD Requests”