I have a huge directory of images on a CentOS server (~65gb). The images are predominantly jpeg's but theres some png's and a couple of gif's.
Here's the annoying and weird part - the images are all stored without extensions, with filenames such as z_1bC5f4. They've had an initial optimization by imagemagick but I need to reduce all their sizes. I'd like to install a CLI optimization tool but i'm not sure how I get round the lack of extension. I also need to run this on the production server without using all cpu and memory.
There's also the question of which tool to use - there's a lot out there, trimage looks good but doesn't appear to work on CentOS.
Any ideas?