title: Command line tool to resize image files to max size and change casing
body: <p>Suppose you have a folder with a lot of images. Filesizes and extensions differ per image and you want to be consistent in the same format. Is there a way to:</p>
  
  <ul>
  <li>Make filename uppercase and extension lowercase (if not already): EXAMPLE.jpg</li>
  <li>Convert image to .jpg if current type is other than jpg. (could be png, tiff, bmp, psd etc)</li>
  <li>Convert image to max. 5 MB if currently larger, but only resize if it is more than 5MB else leave it as is. The image dimensions don't need to be changed.</li>
  </ul>
  
  <p>How can this be done?</p>
  
  <p>Excuse me if this is a too broad question, but I have looked for all kinds of tools like BulkRenameUtility, Flash Renamer, JPEG resizer, ReaConverter. All excellent tools, but they all use a GUI and I'd like to create one solution that runs every night on a windows server automatically. The renaming part could be done with command line for BRU or flashrenamer perhaps, but how about the conversion to JPEG with max filesize...</p>