imagine kitty magazine

Skip over navigation
  • Categories

    • ASP.NET
    • Bible tags
    • Christianity
    • Classic ASP
    • Firearms
    • Humor
    • Random
    • Trackbacks
    • Web design
    • Web standards
    • Why I am the way I am
    • Wordpress
  • Pages

    • Bible verse tags 2.0
    • Portfolio
    • Steps to building a proper web page
  • Blogroll

    • benthack
    • ASP.NET Resources
    • Bible Dude
    • Cake Wrecks
    • Church Communications Pro
    • Creating Passionate Users
    • Dossy’s Blog
    • Gary Turner’s html & css workshop
    • I Will Teach You To Be Rich
    • Pescatarian Cooking
    • SystemDotWeb
    • The Nice Jewish Website
    • The Sneeze
    • Tyssen Design
  • Info

    • home
    • Log in
    • contact mark
    • blogs that link here*
    • valid xhtml
    • valid css
    • valid rss2
    • rss feed
Sigarms P229

spam this

« MOTW 15
How to fix a poll »

Ow! My bandwidth is clogged.

Only one thing annoys me more than uncompressed images and that’s SPAM!

A decent digital camera is cheap these days. Just about everyone owns one. Unfortunately, not everyone understands that a 2 Megapixel jpeg weighs in at about half a megabyte. Don’t get me wrong, I like when people send me big files to work with but having 45 half-meg pics on a web page all shrunk down to size using height and width attributes is nothing but annoying, even with broadband. That’s not to mention those that use these gigantic files as an avatar on their favorite forums.

Speaking of forums, those that allow image uploads really get abused by these guys. Come on, people, let’s compress and resize those images and treat your favorite forums better. Bandwidth isn’t free, ya know?

OK, so let’s get down to business. I use Adobe Photoshop so I’ll show you how to get those images down to size the way I do it.

Step one - Crop and Resize

Don’t use height and width attributes in your image tags to resize your images. Make the picture the size you need it to be. This is the number one way to reduce image size and bandwidth use.

Here is my test image [edit - test image removed because some morons were hotlinking to it] weighing in at 796kb straight from my 2.2 Megapixel Kodak DX3500 (which exports jpegs at 230 pixels per inch). Computer monitors usually show information at 72 pixels per inch so that is how I set all of my images.

I am going to open it in Photoshop and crop out any parts I don’t want to show in the final product and then go to the Image menu to “Image size…” and change this:
Original image size
to this (notice the resolution):
New image size
resulting in this:
Resized image
which is a 288kb file. Much better but not good enough.

*Note - If, after resizing your image down to size, the image looks jagged and unnatural, then undo the resize (in the edit menu) and then apply a little bit of Gaussian Blur in the Filters menu and then resize it. Who knew blurring an image can make it look sharper when you shrink it down? :)

Step two - Compress

Next I use the “Save for web…” item in the File menu.
Save for web menu item
and simply set it to “Medium” under the presets (for jpegs).
Medium setting

Now if you are going compressing a logo or similar graphic (not a photograph) with only a few colors or large spots of a single color then a gif will serve you much better. If you need color matching you don’t want to use jpegs because their compression is based on throwing out some information to get the files smaller. Some of that information is color information and a jpeg over a gif background will sometimes not match but the differences will only show on certain platforms using certain browsers.

After compressing my picture this is the result:
Compressed image
coming in at tidy 28kb. That’s about a 90% savings in file size from the resized and over 99% savings in file size from the original.

So, come on, people! Let’s compress those images and save the bandwidth!

This entry was posted on 27Dec05 @ 2140 and is filed under Web standards. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Sponsored links

Site5 $5 Hosting Dealemail address

Amazon Wishlist

Hello, friends! I've decided to put my Amazon wishlist online. If you feel nice today you can purchase one of the items listed and it will be shipped to my door. My birthday is May 13th and I will gladly accept gifts for any Christian or Jewish holiday. Thank you for your support.

  • RESTful .NET - $26.39
  • jQuery in Action - $21.29
  • People Are Idiots and I Can Prove It!: The 10 Ways You Are Sabotaging Yourself and How You Can Overcome Them - $16.50
  • Programming ASP.NET MVC - $29.69
  • Digital TENS Unit - Powerful Multi-mode TENS - One Week Sale! - n/a
  • Learning WCF: A Hands-on Guide - $25.18
  • Top Secret! - $4.09
  • Kentucky Fried Movie - $4.35
  • The Normal Christian Life - $2.51
  • The Holy Spirit and Reality - $2.51
  • The Richest Man in Babylon - $2.29
  • Tough Guys Don't Dance - $3.54
  • Get Crazy - n/a
  • Don't Let The Irs Destroy Your Small Business: Seventy-six Mistakes To Avoid - $6.88
  • Don't Make Me Think: A Common Sense Approach to Web Usability, 2nd Edition - $19.00
  • Dress Your Best: The Complete Guide to Finding the Style That's Right for Your Body - $11.23
  • Perfect Pushup - Original - $31.96
  • Pro ASP.NET MVC Framework (Pro) - $34.64
  • Benny Hill - Complete & Unadulterated Megaset (1969-1989) - $54.97
  • Young Doctors In Love - $2.78
  • Great White North - $6.37
  • Transylvania 6-5000 - $4.08
  • The Party - $6.14
  • Circuit-Bending: Build Your Own Alien Instruments (ExtremeTech) - $6.00

Disclaimer: All product data in this section belongs to Amazon.com or respective site(s). No guarantees are made as to accuracy of prices or product information. Prices listed are accurate as of the date/time indicated or otherwise within the last 24 hours. Prices and product availability are subject to change. Any price displayed on the Amazon website at the time of purchase will govern the sale of this product.

Site search and links

I'm a friend of Israel

Open Trackback Alliance Logo


Widgetize!
WWW is deprecated
no-WWW class B
*blogs that link here powered by Technorati

©2008 imaginekittymagazine