phpbb 3.1.4 on Ubuntu 15.04.
Is there some tool, command line or other, than I can run through the entire attachment directory, find which are images, and resize to a max of say 1200 on either side, and also re-compress anything bigger than say 500k? For example, there are some ridiculously large 1200dpi scans of 8Mb there where the image is only 1024 in size; some images are tif from 2006 and so on.
If the images had extensions, I could do it in 5 minutes, but I guess I need one tool to identify the header, then if it's an image, pass it to imagemagick or something? And if I do it manually like this, what are the implications for the fact that the real filesize and attachment size in the database will then be different?
I've had a bit of a google and mod search; it's quite possible I'm just not using the right search terms.
Our forum has grown up over a number of years, and the attachment folder size is now nearly 2Gb.
Most of it is images - and the way they are stored isn't too helpful as they are nameless and with no extension, although I can understand why.