Firefox PHP

Resizing of attachments

Posted by haz23 
Resizing of attachments
February 07, 2014 08:17PM
Hello all,

I searched throughout all mods and threads here, but was not able to find some mod that could automatically do resizing of uploaded images? The idea is that usually people upload images directly from their smartphone, and nobody needs 5MB of JPEG file when it can be resized to a predefined maximum height and width to either save space and bandwidth.

Any idea if there is some mod that can do that for me?

Thanks in advance!
Re: Resizing of attachments
November 14, 2015 06:03AM
This would be a mod I'd love to have as well.

While resizing photos may only take me a few seconds, it's a huge stumbling block for the average internet user. Most users want to take photos directly from their phones or camera and simply attach them directly to a post. It's probably one of the most common complaints from users on my site. I get multiple emails every week from users asking me why their photos won't attach to their messages. I cut and paste the same response from my FAQ page with simple direction on resizing their photos but plenty of users just can't figure it out.

I found this old link but I'm no programmer (I'm just a hack who can butcher code enough to occasionally make it work):

It seems like a mod could be written to check files types on upload/attachment and if they are '.jpg', '.jpeg', '.gif', '.png' etc… then resize them to a specific height or width. In the second tutorial it even has instructions on resizing photo on the client side to speed upload time:

Honestly it seems like it's a pretty do-able Phorum mod in principle for someone with coding knowledge. I'd love to tackle it but I don't have the first idea where to start when it comes to writing a mod. I'm just dangerous enough to make small modification to some of the great mods already written (and I hardly ever know why my hack worked or didn't). I don't know how many active Phorum coders/users there are, but I think this could be an extremely useful mod in today's cell phone camera crazy society.

Jake Morgan
Independent Pulling News
Sorry, only registered users may post in this forum.

Click here to login