Compressed Digital Photo File Formats - Storing Digital Photos

Posted: Sep 29, 2006 | Comments: 0 | Views: 1,065 | Bookmark and Share

Digital photos are stored as files on memory cards and computer hard disks. They can be stored in different file formats (each format has a unique file extension). Most of the formats are compressed to save space and each has its own pros and cons.

The need for standard file formats

Digital photos are saved as digital files on electronic media. These digital photo files are a collection of bytes. If each manufacturer and camera would have used a proprietary file format then you would have needed proprietary software that could read, print and display those formats. Using a standard format allows any camera to save photos while any other software can read, display and print them.

What is compression and why it is needed

A digital photo is a collection of pixels each pixel is stored as a value that represents its color and intensity. Usually each pixel is represented by an RGB value (three numbers one byte each with values 0 to 255 representing the intensity of Red, Green and Blue that combined together create the pixel's color). An RGB value occupies 3 bytes. So how big is a digital photo file? It depends on the number of pixels in the photo. For example if you shoot a photo using an 8 mega pixels digital camera the photo will have 8000000 pixels each one occupying 3 bytes. The total file size would be 8000000*3=24000000 or 24Mbytes. This is a very big file. Big files are harder to manipulate they take a long time to send by email, they occupy large storage space and they take longer to load.

In any digital photo there is data that is either redundant or that if removed the viewer would not be able to notice the difference. In addition representing pixels as RGB values is not efficient in terms of storage space. The process of compression takes advantage of these facts. When you compress a digital photo the compression software represents pixels in a more efficient way, removes redundant data and removes data that is "not important". The result is a significantly smaller file. For example the above 24Mbytes file could easily be compressed to about 3Mbytes with hardly any noticeable quality degradation.

Before compressed digital photo files can be viewed or printed they need to be decompressed. Decompression is the reverse process of compression - a compressed file is converted to its original format usually a simple RGB pixel file. Using standard compression file formats allows one software to compress a digital photo file and another software to decompress it and process it.

Lossy or Lossless compression?

There are two main types of compression software: lossy and lossless. Here are the differences:

  • Lossless compression: Lossless compression means that if you take a file compress it and then decompress it the decompressed file would be the exact copy of the original file. With lossless compression no data is lost in the compression process the compression software uses better representation of the data in the file but it does not remove any data from it.


  • Lossy compression: Lossy compression means that if you take a file, compress it and then decompress it the decompressed file would be slightly different than the original one. The compression software not only represents the file's data more efficiently but it also removes data that it considers minor or not important. Such data can be removed without hardly any noticeable degradation in the file quality. The differences between the original file and the decompressed file are minor and should be negligible to the user.


  • Lossless compression is usually applied to text and other data where all data is equally important. For example when compressing the text in this article and later on decompressing it you would want to get the exact original article without any words or sentences dropped by the compression software that decided they were not important.

    Lossy compression is usually applied to digital photos and graphic files. Such files include data that the viewer would not be able to notice if removed. For example small changes to color in a photo might not be noticeable. The decompressed file is not exactly the same as the original one but when viewing both the original and decompressed photos side by side the viewer can not tell the difference. Lossy compression software can be set to different compression levels based on how much data is allowed to be lost. At some point losing too much data is noticeable and degrades the digital photo quality. Many digital cameras allow you to set the level of compression from low to high where high compression means smaller files but less quality and low compression means bigger files but no noticeable quality degradation.

    Common digital photo file formats

    You can know what a digital photo file format is by checking its extension. Usually the extension is three letters representing a specific format. Here is a list of the common extensions and formats:

    BMP Windows Bitmap: this is a basic raw format. The photo is stored as a pixel raster and is not compressed. While this format is very easy to use and is supported by practically all software it is not efficient as there is no compression applied.

    GIF Graphics Interchange Format: An old file format initiated by CompuServe. It uses a lossless LZW compression and is thus more efficient than BMP files. GIF files are very efficient for storing basic graphics (that include lines, circles and other graphical shapes) and also efficient for storing small digital photos but are rarely used to store large digital photos as there are more efficient formats for that purpose. GIF files can also include multiple "frames" and support basic animation.

    PNG Portable Network Graphics: This relatively new format was designed to be used in online applications such as web pages. It uses a lossless compression. The original goal of the PNG format was to replace GIF (due to some licensing complications associated with the GIF format). PNG is commonly used now by online web sites to represent small digital photos or graphics replacing the GIF format.

    JPEG Joint Photographic Experts Group: Also known as JPG this file format was designed by a special industry group and became an ISO standard. The design goal of the format was the efficient storage of digital photographic files. Although JPG files can support lossless compression they are almost always used in lossy compression mode. JPG files are very efficient in compressing digital photos. The JPG compression software can be set to different compression levels with higher compression levels the photo files can get very small but they can also get distorted. JPG files are the most common ones used by digital cameras to store compressed digital photos on memory cards and computer hard disks as they result in small file sizes and hardly any noticeable photo quality degradation.

    (ArticlesBase SC #59916)

    Rate this Article
  • 1
  • 2
  • 3
  • 4
  • 5
  • 0 vote(s)
    Feedback
    RSS
    Print
    Email
    Re-Publish

    Source:  http://www.articlesbase.com/digital-photography-articles/compressed-digital-photo-file-formats-storing-digital-photos-59916.html

    Article Tags:

    Digital Photos

    ,

    Compression

    ,

    jpeg

    ,

    lossless

    ,

    Jpg

    ,

    Png

    ,

    pixels

    ,

    Gif

    ,

    Bmp

    ,

    Photo Formats

    ,

    Photo Files

    ,

    Lzw

    ,

    Lossy

    Learn how to Use the Image File Management in a Digital Camera

    Learn how to use the image file management in a digital camera in this video with Michael Stewart, digital photography expert. (05:07)

    Learn how to Understand File Formats in a Digital Camera

    Learn how to understand file formats in a digital camera in this video with Michael Stewart, digital photography expert. (04:43)

    Processing the Raw File

    In this digital photography tutorial video we go on location to shoot a scarecrow with just 1 flashgun and a torch for lighting. (05:17)

    Beginner's Guide to Adium - #5 - Sending Files to IM Contacts with Adium

    Whether it's the sales report for an upcoming meeting or a photo set from a recent vacation, sometimes you want to send and receive files via instant message. Transferring files over instant message is especially handy when the file in question is too big to send in email. Whatever it is you need to send, Adium makes it easy with its quick and simple file transfer utility. (01:54)

    How to Password Protect Files

    Learn how to protect documents and photos by using a password. (01:31)

    GIF is one of the oldest file formats used for graphics and digital photos storage. GIF has many technical advantages but it also has one big business disadvantage. GIF uses LZW compression which is tangled with patents and licensing issues. The free creation and usage of GIF files was always in debate.

    By: Chris Marshall l Hobbies > Digital Photography l Oct 03, 2006 l Views: 300

    Digital photos are stored as files on memory cards and computer hard disks. They can be stored in different file formats (each format has a unique file extension). Digital photo files can be compressed to save storage space and can use a standard or a proprietary format.

    By: Chris Marshall l Hobbies > Digital Photography l Oct 02, 2006 l Views: 372

    We love sharing photos at Photobox and great photos mean you will love sharing them too. Here are 10 more tips to make great photos.

    By: Julian Grainger l Hobbies > Digital Photography l Feb 09, 2010
    mike

    Did you realize that there are several different photo restoration techniques that are available? Each one has advantages and disadvantages, so you need to do some research before rushing out and giving your photos to the first service that claims to be able to help you restore your photos.

    By: mike l Hobbies > Digital Photography l Feb 08, 2010 l Views: 4
    mike

    With the improvements in technology in recent years, having photo repairs done on your old damaged photos can be a quick and inexpensive process, and one that you should seriously consider. Photos that at one time may have been considered lost causes can now not only be repaired, they can be altered to something much more memorable than the original photograph was.

    By: mike l Hobbies > Digital Photography l Feb 08, 2010
    Darius Fessahazion

    When you first start looking around for the best prices on super zoom digital cameras, you will notice there are many different cameras made by different manufactures.

    By: Darius Fessahazion l Hobbies > Digital Photography l Feb 07, 2010 l Views: 12

    The article on this site titled 'What's Icing a Cake Got to Do With Pixels and Resolution in Photoshop?' explains that a pixel is a small square of digital information. This article adds to that information. A pixel is a small square of digital information, but what does that mean in practice?

    By: Duncan Wherrett l Hobbies > Digital Photography l Feb 07, 2010 l Views: 2

    Photography is an art and those who own cameras can do exciting things with one, without any necessary native talent . Think about it , not everyone is a talented painter , but anyone can learn to take pictures as art . The advancement in photography equipment is incredible and this allows almost anyone to take pictures easily .

    By: Keith Spangler l Hobbies > Digital Photography l Feb 06, 2010 l Views: 1

    We all know that cross dressers love to share their cross dressing pics. Here's a selection of great photography tips to make sure you get fantastic results, every time.

    By: Paula Harris l Hobbies > Digital Photography l Feb 06, 2010 l Views: 24

    There are many different types of digital commerce in the marketplace today and with this they have different types of storage systems for holding the information for your photographs. Some have internal memory which can store a certain amount of photographs and by adding external memory you can increase this which gives you an even greater capacity to store your photos.

    By: Martin Smith l Hobbies > Digital Photography l Feb 05, 2010 l Views: 3

    When planning and buying your cinema home room it is always a good idea to browse the Internet fully and consider what options will be best for you and what will be best equipment for situation depending on many things such as budget and the space you have.

    By: Chris Marshall l Art & Entertainment l May 16, 2008 l Views: 390

    When you are looking into selling your items on auction websites such as ebay there are plenty of things to consider that can help the transaction go as smoothly as possible.

    By: Chris Marshall l Internet > ECommerce l May 16, 2008 l Views: 23

    People searching for fat loss advice are often people who want information about the best ways to lose weight and what will be most effective for them personally.

    By: Chris Marshall l Sports and Fitness > Weight Loss l May 13, 2008 l Views: 148

    The business community continually changes and ownership of businesses change hands as smaller entities are swallowed up by bigger corporations. We hear about it all the time in the news, but yet very few people can name a example of monopolistic competition, or realise what the definition monopolistic competition is.

    By: Chris Marshall l Business > Sales l May 07, 2008 l Views: 7,710

    There is much talk about climate change, and the search for viable renewable energy sources. Everyone knows about the likes of solar, wind and wave power. But fewer have heard of geothermal, or know how does geothermal energy work.

    By: Chris Marshall l News and Society > Environment l Apr 27, 2008 l Views: 23,496 l Comments: 25

    Grand Theft Auto 4 is set to be released next week and game analysts are suggesting that it is not only the biggest release of the year but also the game that could really push on the sales of the next generation consoles.

    By: Chris Marshall l Computers > Computer Games l Apr 26, 2008 l Views: 249

    Global warming can affect everything and it could eventually affect the death rate of our population if things do continue to get worse over the next few years.

    By: Chris Marshall l News and Society > Environment l Apr 26, 2008 l Views: 346

    Rockstar have revealed some brand new details about some of the different online modes in the next version of Grand Theft Auto.

    By: Chris Marshall l Computers > Computer Games l Apr 24, 2008 l Views: 215

    Add new Comment

     
    * Required fields
    Author Box
    Articles Categories
    All Categories
    1