I'm looking forward to downloading this later and checking it out. I do something fairly similar and nested mine within a WordPress Image upload shortcut, it checks if the image is a suitable size or not and if it is too large, then the resize shortcut runs. I'm intrigued by the idea of adding something like TinyJpeg to mine so that it can optimize images further.