Home

How to Resize Images with IrfanView for Your HTML5 and CSS3 Based Web Pages

|
Updated:  
2016-03-26 13:17:41
|
HTML5 and CSS3 All-in-One For Dummies
Explore Book
Buy On Amazon

All the other image-manipulation tricks may be optional, but you should really resize the images on your HTML5 and CSS3 web pages. Although high-speed connections may have no trouble with a huge image, nothing makes a web page inaccessible to users with weaker connectivity faster than bloated image sizes.

To resize an image with IrfanView, perform the following steps:

  1. Load the image into IrfanView.

    You can do this by dragging the image onto the IrfanView icon, dragging into an open instance of IrfanView, or using the menus within IrfanView.

  2. From the Image menu, choose Resize/Resample.

    You can also use Ctrl+R for this step.

  3. Determine the new image size.

    A number of standard image sizes are available. 800×600 pixels will create a large image in most browsers. If you want the image smaller, you need to enter a size in the text boxes. Images embedded in web pages are often 320 pixels wide by 240 pixels tall. That's a good starting point. Anything smaller will be hard to see, and anything larger might take up too much screen space.

  4. Preserve the aspect ratio using the provided check box.

    This makes sure the ratio between height and width is maintained. Otherwise, the image may be distorted.

    image0.jpg
  5. Save the resulting image as a new file.

    When you make an image smaller, you lose data. That's perfectly fine for the version you put on the web, but you should hang on to the original large image in case you want to resize again.

  6. Resample, rather than resize.

    Resampling is a slower but more accurate technique for changing the image size. This is IrfanView's default behavior, so leave it alone. It's still quite fast on a modern computer. The default (Lanczos) filter is fine, although you can experiment with other filters to get a faster conversion, if you want.

About This Article

This article is from the book: 

About the book author:

Andy Harris earned a degree in Special Education from Indiana University/Purdue University–Indianapolis (IUPUI). He taught young adults with severe disabilities for several years. He also taught himself enough computer programming to support his teaching habit with freelance programming.
Those were the exciting days when computers started to have hard drives, and some computers connected to each other with arcane protocols. He taught programming in those days because it was fun.
Eventually, Andy decided to teach computer science full time, and he still teaches at IUPUI. He lectures in the applied computing program and runs the streaming media lab. He also teaches classes in whatever programming language is in demand at the time. He has developed a large number of online video-based courses and international distance education projects.
Andy has written several books on various computing topics and languages including Java, C#, mobile computing, JavaScript, and PHP/MySQL.
Andy welcomes comments and suggestions about his books. He can be reached at [email protected].