Multimedia Buddies 2010 Presenation

0 comments

Our presentation to all the 1st Year Multimedia students this morning.

Posted via email from City&Wool's Posterous

Web Designer’s Guide to PNG Image Format

0 comments

Web Designer’s Guide to PNG Image Format

November 23rd, 2010 by Catalin Rosu | No Comments | Stumble It! Delicious

Web Designer's Guide to PNG Image Format

Once upon a time, there was the mighty GIF image format, the most popular type of image compression for web graphics. Then, it was announced that software programs using GIF would require a license (this was because of the Unisys patent for the LZW compression method used in GIF). This change sped up the development for its successor: the PNG format. PNG, which stands for Portable Network Graphics, gained popularity and, nowadays, it’s probably the most used image format when it comes to web design, alongside JPEG.

In this guide, we will cover everything you, as a web designer, need to know about the PNG image format.

Understanding Digital Image Formats

There are many digital image formats available for you to use, but only some of them are optimized for web use. For example, the TIFF image format is not designed for web use; it’s used for printing. Examples of image formats for the web are JPEG, PNG, GIF, and SVG.

Why are certain image formats suitable for the web, while others aren’t? Because images on the web must be optimized and highly compressed so that they don’t get too huge.

Some digital image formats, especially those designed for print (such as TIFF) are so unnecessarily high in resolution, metadata, and color-richness — which all become irrelevant when viewed in computer  monitors — that they are too big in file size for web use.

Compression Methods

There are two general kinds of image compression methods: lossy and lossless.

Lossy compression is when the compression algorithm being used results in some loss in data. This means that you will not get the exact same image as the original if you try to decompress it. The data loss, in most instances, is done in such a way that you don’t lose too much quality; at least not enough that people will notice.

On the other hand, lossless compression is the opposite of lossy. Lossless compression involves compression algorithms that when decompressed, will get you exactly the same image as the original. An example of lossless compression is when you are zipping up a document using the ZIP format. When you unzip your document, it will be the same as the original.

PNG uses a lossless compression algorithm. On the other hand, JPEG uses a lossy compression algorithm. What this essentially means is that, by saving your original images using JPEG, you might witness some quality loss (the same goes for PNG in certain situations, as you’ll see later on).

Compression Methods

Some Technical Stuff about PNG

Aside from using lossless compression, PNG is a bitmapped image format, which just means it’s a raster image format. If you skipped Design 101, raster images, unlike vector image formats such as SVG, cannot be rescaled without losing quality. However, raster images are better than vector images for complex images such as photographs.

PNG was designed for quickly transferring images on the web and for displaying images in computer screens, so it only uses the RGB color model. The CMYK color model, which is typically for print purposes, is not available when saving images in PNG format. In short: the PNG image format is not optimal for graphics that will be printed.

PNG-8 and PNG-24

There are two PNG formats: PNG-8 and PNG-24. The numbers are shorthand for saying "8-bit PNG" or "24-bit PNG." Not to get too much into technicalities — because as a web designer, you probably don’t care — 8-bit PNGs mean that the image is 8 bits per pixel, while 24-bit PNGs mean 24 bits per pixel.

To sum up the difference in plain English: Let’s just say PNG-24 can handle a lot more color and is good for complex images with lots of color such as photographs (just like JPEG), while PNG-8 is more optimized for things with simple colors, such as logos and user interface elements like icons and buttons.

Another difference is that PNG-24 natively supports alpha transparency, which is good for transparent backgrounds. This difference is not 100% true because Adobe products’ Save for Web command allows PNG-8 with alpha transparency.

PNG-8 and PNG-24

The Short Story: When to Use PNGs

When you need to preserve transparency and large amounts of color, as well as achieve full or partial transparency, the PNG image format is the best.

Since it’s a lossless format, images saved using the PNG format aren’t going to be small all the time, but because PNG stores a lot of additional data, you can easily optimize images for web usage to reduce file sizes.

PNG vs. GIF vs. JPEG

Let’s compare the advantages and disadvantages of using PNG versus the two other popular web image formats.

PNG vs. GIF

Short answer: Always use PNG over GIF unless you are making an animated GIF or when you want to use images with transparent backgrounds on older versions of IE (however, there’s a workaround for supporting PNG transparencies in IE6 and below, using JavaScript PNG fix libraries). I’m not alone on this, Jeff Atwood, founder of StackOverflow and the Coding Horror blog, will agree.

PNG has some important advantages over GIF that web designers will care about, such as:

There are, of course, many other advantages, but those are the ones that matter to web designers.

Here’s a visual comparison of PNG versus GIF. Note that for the sample image below, you would not use PNG-24 because it has simple colors and will also weigh more than GIF. However, the PNG over GIF notion still stands: If you save a photographic image (such as a photo of your mom and dad), PNG-24 will have a better result than GIF.

PNG-8, file size: 3.73 KB PNG-24, file size: 5.68 KB GIF, file size: 4.20 KB

Optimization Tip: There are a lot of tools you can use to optimize your images. Below, I used pngcrush for the PNG images and Smush.it for the GIF image. No apparent loss in quality, and PNG-8 still wins over GIF.

PNG-8, file size: 3.69 KB PNG-24, file size: 5.41 KB GIF, file size: 3.71 KB

PNG vs. JPEG

JPEG will be tinier in file size versus PNGs when we’re talking about photographic images. This is because it uses a lossy compression algorithm specifically designed for photographic, rich-color images.

So for web use, if you’re putting up a photographic image on a web page (such as a picture of your cat), always choose JPEG over PNG. Using PNG over JPEG in this situation will result in a bigger file size (often 5-10 times more than JPEG).

Here is a PNG vs. JPEG (quality: 70) comparison using a photographic image. Note that we use PNG-24, not PNG-8, because it’s the proper format for photographic images.

PNG-24, file size: 66.6 KB JPEG, file size: 14.41 KB

Further optimization with pngcrush and Smush.it:

PNG-24, file size: 64 KB JPEG, file size: 14.2 KB

Optimization tip: You (as the web designer) will criticize your images more than your website users, so a good advice is to be a little more "brutal" when saving your web images. Find a good balance between file size versus quality. Lower your quality settings until it becomes unbearable.

When to Use Each Format

Here is a simplistic summary of the file format comparisons:

  • Use PNG-8 over GIF for images with simple colors (logos, icons, buttons)
  • Use PNG-8 over JPEG for images with simple colors (logos, icons, buttons)
  • Use PNG-24 over GIF for photographic images
  • Use PNG over JPEG when using alpha transparency
  • Use JPEG over PNG for photographic images
  • Use GIF for background transparency for older browsers (IE6 and below)
  • Use GIF for animated GIFs

PNG-8 Color Reduction Optimization

When choosing the PNG-8 image format, you may see a decrease in the number of colors in the image. This is why it is good for simple artworks such as logos, icons, and UI elements such as buttons.

Pick PNG-8 in instances where there is a limited color palette. This will help you achieve a smaller image file size without any visible difference, allowing you to build faster, leaner and more responsive web designs.

An optimization trick you can perform is reducing the number of colors of your PNG image. This will drastically reduce its file size, and you can do it with little-to-no apparent loss in quality.

Most software applications that can save PNG files will have the ability to allow you to manually enter the number of colors to include. For example, Photoshop’s Save for the Web & Devices feature (which you can get to by going to File > Save for Web & Devices) gives you a dropdown menu for setting the number of colors for the PNG format. Reduce the number of colors until you see a visible difference in quality.

Below, you can see the optimization of the RSS icon we used earlier through the reduction of the number of colors. Reducing the number of colors from 256 to 16 results in very little noticeable loss in quality and results in a file size that is 62% smaller — over half of the file size was shaved off!

PNG-8 256 colors, file size: 3.73 KB PNG-8 64 colors, file size: 2.18 KB PNG-8 32 colors, file size: 1.75 KB PNG-8 16 colors, file size: 1.41 KB

PNG-24 Posterization Optimization

This optimization technique helps you optimize the PNG-24 format and this is how it works: it reduces the amount of colors by combining similar colors.

In Photoshop, here is how you can do this optimization trick: Open the image in Photoshop. Choose Image > Adjustments > Posterize and then decrease the levels until it results in visible quality loss. Then just use the Save for the Web & Devices feature to save the image in PNG-24 format.

PNG-24 Original, file size: 29.5 KB PNG-24 Posterized, file size: 23.9 KB

Summary

For web designers, the importance of reducing images sizes is a way to increase the overall speed of a web page. Optimized, smaller images in a web design means:

  • Faster web pages that load more quickly
  • Less bandwidth consumption
  • Less data required to transfer to site visitors, which means lower data activity

You may be wondering if PNG is the best image format — this is an inevitable question. The answer is: it depends. As shown in this guide, there are many variables that will affect what image format you will choose. Certain situations will find PNG-8 favorable over PNG-24, while others will produce better results when using JPEG.

PNG has certain advantages over GIF, such as lower file sizes and being an open format. However, PNG transparency in IE6 isn’t supported so you might have to use GIFs (or a JavaScript library that emulates PNG alpha transparency in IE6, such as IE PNG Fix). The same can be said for when you’re dealing with animated images, which GIFs can do.

Regarding PNG versus JPEG: the choice depends a lot on what type of image you’re optimizing. Specifically, PNG does extremely well with limited color schemes, solid colors and supporting transparency (which JPEG does not support). For complex, photographic images, JPEG is the way to go.

The main thing to take away here is that you should use a combination of image formats. You shouldn’t strictly use PNG, or JPEG, or GIF. Furthermore, you shouldn’t be afraid to optimize each image manually so that you can achieve better results and smaller file sizes. You should always use an image optimizer, which will squeeze out every last excess byte.

There are two things that will help you pick the right format: experimenting and experience. The more you save images for the web, the quicker you will be in recognizing situations in which PNG, JPEG, or even GIF should be used.

References and Resources

Related Content

Posted via email from interactive media's blog

Website Designer, Nuthall Parish Council. Deadline - 30.11.10

0 comments

Website Designer [Job ID: 100533]

Posted On: 19/11/2010

Company Name: Nuthall Parish Council

Job Type: Part Time Jobs

No of Position: 1

Industry: IT

Period: Part Time

Hours or days required: 
4 hours per week to be worked one morning 09.00-13.00 - day to be agreed

Job Description:

Calling all Students that are interested in Websites!

Nuthall Parish Council need an enthusiastic person to look after their website - www.nuthallparishcouncil.co.uk

You would be based at the offices above and be responsible for the website design and loading of information from various groups within the community as well as the council Clerk.

We are looking for someone with new ideas to make our website attractive to all age groups and give it a modern outlook whilst still remaining easy to navigate.

In addition you will be asked to promote using the internet future Council events, research purchases on-line to find the best deals for the Councils’ supplies, and generally help out in the office when it is busy.

Hours of work will be 4 hours per week, preferably a morning (9am till 1pm) on a day to be mutually agreed.

If you think you are the person we are looking for then please send us your CV, and perhaps an overview of how you think our website looks now and what you would do to make it better to:

Salary: 
£7 Per Hour

Location: 
East Midlands - Nuthall - 5 miles north-west of Nottingham City centre

Deadline: 30/11/2010

How to apply? 
Apply through the Nottingham Trent Student Union's JobShop via the link - http://www.trentstudents.org/jobshop/index.php?page=show_me_job&show_advert=100533&jobtype_id=3


Posted via email from interactive media's blog

Twitter got me on the ITV Central Lunchtime News

0 comments

Last Wednesday night a fire broke out on Goldsmith Street about 2am.

I live opposite where the fire started, and being on the 6th floor with probably the best view of the fire, I decided to film some of it as it developed.

The next morning I wanted to see if I could get my video on the news.

I contact Sky News, BBC and ITV through various upload methods, email and Twitter and within 6 minutes of me sending my tweet to @ITVCentral I had a reply!

I then emailed them my video and had a reply saying it might be on the 1.55pm lunchtime News.

They weren't lying, so here it is. My 5 seconds of fame!

Download now or watch on posterous
VIDEO0014.3gp (6263 KB)

Posted via email from City&Wool's Posterous

An Introduction to QR Codes

0 comments

Adobe Flash coming to iPhone, thanks to Skyfire

0 comments

Adobe Flash is finally coming to the iPhone … thanks to Skyfire.

Skyfire is a web browser for the iPhone platform, but with a difference. It offers the ability for iPhone users to view Flash video content by transcoding it into HTML5 on the fly. Skyfire for iPhone was built in accordance with Apple guidelines, including the use of a WebKit browser core shared with Safari, and h.264 adaptive streaming and has been approved by Apple for inclusion in the App Store.

As well as transcoding Flash video, Skyfire offers several features not offered by the built-in Safari browser:

  • Related Content – The “Explore” icon recommends relevant content (news, video, tweets, etc.) based on the page they’re viewing at the time.
  • Sharing – The “Share” icon lets users share any article or video easily with their friends on Facebook, Twitter or e-mail.
  • User Agent Switching - load pages for either mobile or desktop.
  • Privacy - Keep your browsing private, with no data trail.

Skyfire will be hitting the Apple App Store this Thursday, priced at $2.99.

Posted via email from City&Wool's Posterous

Personal Research Project - Love Plus and their Augmented Reality Girlfriends

0 comments

Quick Response Codes and Augmented Reality can improve our ability to share information and communicate ideas and concepts with each other, however in using them in their most extravagant forms, for example Augmented Reality girlfriends which promotes communication with virtual characters, could this separate the user from social inclusion in the real world?

Here's what I mean by Augmented Reality girlfriends -

Love Plus for iPhone

2:48 - Love Plus Augmented Reality girlfriend

Now how would your Love Plus AR girlfriend look animated?

Thinking about the artifacts that are going to come from my research project, I'm looking into making an AR Application for myself. It was also suggested that I might make my own AR girlfriend but I think that was just for comedy value.

ARToolKit

Posted via email from City&Wool's Posterous

Digital Hero - Complete

0 comments

Completed version of my simulated client project can be found here

I've also had a chance to have a look at some other students' projects. Here are a select few -

Stephen Greig's

Daryl Brunsden

George Wood

Anthony Birks

Posted via email from City&Wool's Posterous

Time To Get Down To Business

0 comments

I've been meaning to update my online portfolio for a while but haven't had time to do so, but now I'm slowly in the process of drawing up some mock-ups.

My new site will be clean and crisp utilising my new found love for QR Codes, and hopefully some AR, depending on how I get on. I also want to design it using the new HTML5 and CSS3 techniques with a splash of stylish jQuery. I'm hoping to follow the same styling as my Twitter page too.

In the process of drawing some things up, I found this site -

It allows you to generate QR Codes that can send tweets, emails and even log on to a WiFi Hotspot. I have therefore tried it out for myself on the image above. I may decided to incorporate these ideas into my new design too.

Posted via email from City&Wool's Posterous

QR Code Art That You Can Digitally Attach Comments To

0 comments

I spotted this a few days ago. A really nice piece of QR Code Art! Here's more information about the prints -

A new collection of 10 limited edition prints. QR code decodes to a twitter search about #qr, and their is a stickybits code that allows you to attach digital comments to the print itself. Enjoy. If you dont have the stickybits application, please leave comments by visiting this link- http://bit.ly/9umKuI

Posted via email from City&Wool's Posterous

Examples of Augmented Reality at it's Best

0 comments

Augmented Reality by Hitlab
Some brilliant examples of AR in action, and this was all back in 2007.

David Wood's AR CV
Possibly the best CV I've ever seen! This would be an amazing project to do as one of my artifacts within my personal research project.

Jason Bradbury and creating the first AR CV
Here's how David's AR CV was created. A little behind the scenes video presented by Jason Bradbury.

AR4BC - Augmented Reality for Building and Construction (2010)
Practical uses of AR withing the construction industry.

Posted via email from City&Wool's Posterous

My Personal Research Project

0 comments

My PRP Question
Could the use of QR Codes and Augmented Reality improve the way we share information and communicate with each other?

Some notes and points I'm hoping to look at...

Using QR Codes and Augmented Reality to develop the way we network with each other.

  • Business cards imprinted with QR Codes that will play a short bio of yourself when looked at through an Augmented Reality applicaition,
  • Using an Augmented Reality app in a conference to get information about the speakers. Face recognition software within an AR application that would display virtual information about the lecturer/speaker. The ablity for the speaker to control what he wanted to display about himself and to add Facebook, LastFM, Twitter, Personal Website or even an email address,
  • Using a QR Code in speed dating, on an item of clothing to display a short bio of the person on your mobile,
  • Love Plus, a Japanese dating simulation, displaying their virtual girlfriends through the reading of a QR Code producing an Augmented Reality model. This isn’t improving the way we communicate with others,
  • A development to this technology would be the ability to wear Augmented Reality glasses that would be able to see all this information instantly. You wouldn’t have to rely on your mobile phone,
  • Using these technologies, would it decrease the amount we communicated with each other? If you could get to know someone without talking to them,
  • Although privacy would be a concern, you would be able to limit what you displayed to your audience exactly like your Facebook page,
  • The way that brand could communicate with their audiences. it’s done at a more personal level by offering extra content to the individual,
  • It only improves the way we communicate information with each other if the information/content is valuable and optimised for viewing on a mobile device,
  • Does it promote lazyness? Would we rather use a QR Code to get to a website rather than to type in a URL because we want speed and ease.

Posted via email from City&Wool's Posterous

A Few Pictures from GameCity5

1 comments

I've been stewarding at GameCity5 for the last few days and I really enjoyed it. If you didn't get change to sign up to volunteer this year, then sign up for next year! It's really good experience.

Here are some pictures from the festival.

Now it's back to work. My personal research project and my live client project.

Posted via email from City&Wool's Posterous