At 604, the sending client may receive a request in an interface of a communication application to compose a message to the receiving client (block 604 may precede block 602, in some embodiments). The message may include an attachment such as an image, which may be stored in a memory or storage of the sending client. Accordingly, at block 606, the communication application may retrieve the image from storage or memory. Alternatively, the image may be stored remotely, and at block 606 the communication application may request a copy of the image from the remote location.
At block 608, the system may determine if multi-scan is enabled. In some embodiments, multi-scan may be used to scan the image at a thumbnail quality, and at least one additional intermediate quality between the thumbnail quality and the full image quality. Multi-scan may be enabled by default, based on user settings, or in certain contexts (e.g., if the image is expected to be downloaded from an unreliable or slow network). If so, processing may proceed to block 802 (see 
If multi-scan is not enabled, then at block 610 the image may be scanned with two qualities. For example, the image may be scanned as a progressive JPEG using a scan script. One example of a scan script that provides two or four qualities of image is as follows: