You need to be a member to view comments.
Join today. Cancel any time.Sign Up
Dreamweaver tutorial 08: Is a Gif better than a JPEG or PNG?
Hi, Welcome, My name is Daniel Walter Scott. I am a trainer here at Bring Your Own Laptop. This course is designed for people who are new to Dreamweaver and Web Design. The topic we are covering today is: What image type to use?
We are going to look at the different kinds of files that you can use on your website. The first one that you may have heard of is a ‘tiff’. This cannot be used online but it is very good for print. Those of you who are Graphic Designers coming to web design, you cannot use these online.
There are 3 other types of images. JPEG, GIFF and PNG.
• JPEGs are good for photography
• GIFFs are really good for logos, icons and type
• PNGs are really good for things that need a transparent backrounds
JPEG on a website
A JPEG is great for photos because it is great for colour. It has millions of colours. It uses something called a lossy format. This means that it can be used for different quality sliders. It can be scaled down, so you can lose data. It’s really good for compression. If you have used photoshop to save a JPEG, it gives a quality slider. For print you want it as high as it will go, on a website you want to keep the slider as low as it will go to keep the size down without losing much of the quality.
GIFF on a website
A GIFF only has 256 colours that it can use. The positive is that it is very small, it is also very good for text and images and logos because the way that it works, the way it is put together means that it retains a really crisp edge on things like type and logos or small icons that don’t have too many colours. It can be used for any clipart type of images that don’t have too many colours.
PNG on a website
PNGs. You don’t want to use PNG8s as these are old school. You want to use PNG 24 or 32 depending on which programme you use. It has the best of both worlds for both JEPG and GIFF. It is able to show really crisp edge type like GIFF and it has loads of colours like JPEG. The problem with a PNG is the file sizes get really big. It uses a lostless format. Unlike JPEGs lossy. Lossy means that you can lose data to get the compression down. PNGS don’t have this. A PNG is always going to be good, it’s as good as it’s going to be, there’s no low quality PNG. The problem with this is larger file sizes.
The image size / quality trade off
When it comes to web design, it is a trade off between quality and file size. If I can use a JPEG to get a smaller file size than a PNG without any visible difference in quality then I’m going to use a JPEG. The good thing about a PNG is that it has transparency. GIFF has transparency but is very very poor. It is only able to turn pixels completely see through or completely opaque. Whereas a PNG will show you multi level transparency. Great for drop shadows and things that need a transparent background. You might have an image or a photograph that needs to have a transparent background in your website.
In the next tutorial we will look at using photoshop to create these images so that you can really see the difference between these three formats.