Small addon that will convert PNG images to JPEG if they are larger than the maximum allowed attachment filesize.
Please note that transparency will be lost in this case.
I did implement code to detect transparency and ignore the file if it does contain transparency, but that quite simply does...