|
Khimaira FAQs :: Khimaira WebHosting Solutions
|
Khimaira FAQs :: Web Design Tips and Resources :: Compress Images in XP
| Information |
|
So, you have a digital
camera at work or home and now you are a photo fool! Pictures! Pictures!
Pictures! You have to save them all and you have to share them all. You can't
just delete those moments in time, so you save them on your local or network
drive, send them as email attachments, or publish them to the web. Well no
matter how much storage capacity you have, and no matter how much bandwidth is
available, you'd be doing everyone a favor if you'd learn how to compress
those "images" and reduce the file size.
Fortunately, Windows XP
has a built-in feature for compressing and emailing image attachments, and the
process can be easily adapted for storing compressed images. Those typical
color photos from digital cameras are 556 K (a half a megabyte).
Compressed, they're only 56 K. Here, we took a 12+ megabyte TIFF file and
reduced it to under 100 K. It was hard to see the difference on the screen.
Compressing and Shrinking Image FilesAdapted from Microsoft Windows XP Inside and Out, Bott, Siechert, and Stinson, Microsoft Press, 2001When you initially capture or scan an image, the size of the file can be enormous. That's all well and good if you have a large hard drive and you intend to send the digital photo to a color printer using high-quality paper. The larger size means more detail and thus a better image. But large file size is a serious hindrance if you plan to send an image as an e-mail attachment or upload it to a Web site. In either of those cases, your most important consideration is reducing the image to a size that can be conveniently downloaded without sacrificing quality. Shrinking Images for E-MailIf you plan to send digital photos to a co-worker, friend or relative via e-mail, you'll run into problems if you don't plan carefully. If the recipient has a dial-up Internet connection, for instance, they probably won't appreciate tying up the line for a half-hour as your 6-MB attachment in TIFF or BMP format trickles in. With some Internet service providers (ISPs), attachments over a specified size are summarily rejected or can exhaust the user's quota on the server, causing all incoming messages to be rejected until he or she downloads your attachment. If you manually attach an image file to a message, Microsoft Outlook Express, Outlook 2000/2002, and other e-mail client programs will send the original, uncompressed image. However, Windows XP can help you shrink the size of the image and convert the file to a compressible format, if you use the right technique. To do so, follow these steps:
By default, this option converts BMP and TIFF images to JPEG format (because GIF and JPEG images are already compressible, using this option leaves those file formats alone). It then compresses the file substantially and resizes the image to 640x480 pixels. If you're willing to accept a larger file size in exchange for more detail, you can select the Medium (800x600) or Large (1024x768) options instead.
The results of this compression can be startling. The table below shows the before and after file sizes of four images. In all cases, the compressed file is less than half the size of the original, and in the case of large TIFF and BMP files the compression ratio is as much as 99%. How Compression Affects Graphics File Sizes
Caution Using this technique to shrink and compress an image file invariably causes a loss of data. When you're sending a snapshot to your parents, the drop in quality is probably a fair tradeoff for the faster, slimmer e-mail attachment. But if the scanned image contains text, or if the recipient wants to be able to print a high-quality copy, check the compressed image before you click Send. Where quality is crucial, you might have better results using the Zip format to compress the original file without losing any data. Compressing Batches of Image FilesWindows XP doesn't include any batch conversion tools to help you manage image files, but you can accomplish the same goal indirectly, by running images through the wizard used to shrink them for e-mail. If you're getting ready to upload a folder full of scanned photos to a Web site, for instance, you might want to convert them to JPEG format and shrink them to a standard size first. Here's how:
|
 
