Compressing images for email attachments

Mail providers cap attachment size and big photos slow down both sending and opening, so a lighter file reaches the inbox faster.