Various file formats to store images

Before knowing the various file formats to store images, we need to understand about compression.

Compression:In simple words,to compress the image or to reduce the size of image.

There are two types of compression-  lossless and lossy.

Lossless compression  reduce file size while saving a perfect copy of the original uncompressed image. Lossless compression generally  results in larger files than lossy compression because it doesn't loose the picture quality.

Lossy compression preserve a  the original image that may appear to be a perfect copy, but it is not a perfect copy. Lossy compression achieves smaller file sizes than lossless compression. Most lossy compressions always lead to the degradation in  image quality by reducing the file size reduces as the picture is edited again and again.

different-file-formats

Major graphic file formats

 There are various image file types i.e. PNG, JPEG, and GIF formats are most often used to display images on the Internet. These graphic formats are listed and briefly described below, separated into the two main categories of graphics: raster and vector.

Raster formats

JPEG/JFIF

  • JPEG (Joint Photographic Experts Group) is a lossy compression method.
  • Usually stored in the JFIF (JPEG File Interchange Format) file format.
  • Extension : JPG or JPEG.
  • Nearly every digital camera can save images in the JPEG/JFIF format, which supports 8-bit grayscale images and 24-bit color images (8 bits each for red, green, and blue).
  • It applies lossy compression to images, which can result in a significant reduction of the file size.
  •  JPEG files suffer generational degradation when repeatedly edited and saved. (JPEG also provides lossless image storage, but the lossless version is not supported generally).

JPEG 2000

  • JPEG 2000 is a compression format that enables both lossless and lossy storage.
  • The compression methods used are different from the ones in standard JFIF/JPEG; they improve quality and compression ratios.
  • They also require more computational power to process.
  • JPEG 2000 also adds features that are missing in JPEG. It is not nearly as common as JPEG, but it is used currently in professional movie editing and distribution (some digital cinemas).

Exif

  • The Exif (Exchangeable image file format) format is a file standard similar to the JFIF format with TIFF extensions.
  • It is incorporated in the JPEG-writing software used in most cameras.
  • Main purpose: To record and to standardize the exchange of images with image metadata between digital cameras and editing and viewing software. The metadata are recorded for individual images and include such things as camera settings, time and date, shutter speed, exposure, image size, compression, name of camera, color information.
  • The actual Exif metadata as such may be carried within different host formats, e.g. TIFF, JFIF (JPEG) or PNG. IFF-META is another example.

TIFF/TIF

  • The TIFF (Tagged Image File Format) format is a flexible format that normally saves 8 bits or 16 bits per color (red, green, blue) for 24-bit and 48-bit totals, respectively.
  • Filename extension : Either the TIFF or TIF.
  • TIFFs can be lossy and lossless; some offer relatively good lossless compression for bi-level (black&white) images. Some digital cameras can save in TIFF format, using the LZW compression algorithm for lossless storage.
  • TIFF image format is not widely supported by web browsers. TIFF remains widely accepted as a photograph file standard in the printing business.
  • OCR(Optical Character Recognition) software packages commonly generate some (often monochromatic) form of TIFF image for scanned text pages.

difference-in-jpeg-png-gif-images

RAW

  • RAW refers to raw image formats that are available on some digital cameras.
  • These formats generally use a lossless or nearly lossless compression, and produce file sizes smaller than TIFF formats.
  • Most cameras have their own software for decoding or developing their raw file format, but there are also many third-party raw file converter applications available.
  • Adobe's Digital Negative (DNG) specification is an attempt at standardizing a raw image format to be used by cameras.
  • REDCODE(.R3D extension), which stores still as well as audio + video information in one lossy-compressed file.

GIF

  • GIF (Graphics Interchange Format) is limited to an 8-bit palette, or 256 colors. This makes the GIF format suitable for storing graphics with relatively few colors such as simple diagrams, shapes, logos and cartoon style images.
  • GIF format supports animation and is still widely used to provide image animation effects.
  • It also uses a lossless compression that is more effective when large areas have a single color, and ineffective for detailed images or dithered images.

jpeg-vs-gif-images

BMP

  • The BMP file format (Windows bitmap) handles graphics files within the Microsoft Windows OS.
  • BMP files are uncompressed, hence they are large; the advantage is their simplicity and wide acceptance in Windows programs.

PNG

  • PNG (Portable Network Graphics) file format was created as the free, open-source successor to GIF.
  • PNG file format supports 8 bit paletted images and 24 bit true color (16 million colors) or 48 bit true color with and without alpha channel - while GIF supports only 256 colors and a single transparent color.
  • Compared to JPEG, PNG excels when the image has large, uniformly colored areas.
  • It is best suited for pictures that are under edition - and  formats, like JPEG, are best suited  for the final distribution of photographic images, because  JPG files are usually smaller than PNG files.
  • PNG provides a patent-free replacement for GIF. 
  • PNG is robust, providing both full file integrity checking and  detection of  transmission errors.

Vector format

Vector image formats have a  geometric description which can be rendered smoothly at any desired display size.

All the vector graphics must be rasterized in order to be displayed on digital monitors.The vector images can be displayed by using analog CRT technology and used in some electronic test equipment, medical monitors, radar displays and video games.

Plotters are printers that use vector data rather than pixel data to draw graphics.

CGM

  • CGM (Computer Graphics Metafile) is a file format for 2D vector graphics, raster graphics, and text.All graphical elements should be specified in a textual source file that can be compiled into a binary file or one of two text representations.
  • CGM provides a means of  interchange of graphics data for  2D graphical information and it is not dependent from any specific system.

SVG

SVG (Scalable Vector Graphics) is an open standard , developed by the World Wide Web Consortium to fulfill the need for a versatile and all-purpose vector format for the web.

SVG format does not have a compression scheme of its own. Because of its scripting potential, SVG have a  major role  in web applications.

Author Credit: Priya Gupta

* Do you like this story? Then why not share it with your Friends *
If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you subscribe to our regular Email Updates!

Himanshu is a young engineer living in India. Currently working at LiveCareer as a software engineer. He is an ethical hacker & blogger too, doing lots of crazy stuff... If you seem interesting, go through his portfolio: www.himstar.info : "Open Source. Millions of open minds can't be wrong!"

4 comments: On Various file formats to store images

  • Avatar

    It's going to be finish of mine day, but before
    end I am reading this fantastic article to improve my
    experience.

  • Avatar

    Ӏ enjoy what you guys are up too.Thіs sοrt of clеvеr woгk and еxposure!
    Keep up the superb worҝs guys I've inсorporated you guys tο our blogroll.

    Take a look at mƴ website aair max femme pas cher (air-max-1-femme.hbckemp.com)

  • Avatar

    I'vе been surfing online more thaո 3 hours today, yet I never foսnd any iոtеresting
    article like yߋurs. It іs prеtty worth enough for me.
    In my opinion, if all website owners and bloggers made good content as you did, the internet will be much mߋre useful than еver before.

  • Avatar
    small solar panel 85w bp

    hi
    \It's a nice idea post

Leave a reply:

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Site Footer

Sliding Sidebar

We are India’s largest Startup Community


We are team of ' Delhi Startups ' , most active startup community with strict spam policy.
We are making !deas happen..for future, business and jobs without charging anything, with connecting entrepreneurs.. It's a reason to trust on us.
Come and join or subscribe, we will defiantly give a reason to like us.

Our Facebook Page