Apa itu format file GIF ?

What is GIF file format?



Memahami format file GIF dalam penggunaanya pada website, karena sangat berguna untuk membantu tampilan desain agar terlihat lebih hidup. Untuk membuat file animasi GIF ini bisa menggunakan Photoshop pada menu WINDOW - Animation.

Understanding the GIF file format for use on websites is crucial, as it's incredibly useful for bringing design to life. To create animated GIF files, use Photoshop's WINDOW - Animation menu.


GIF atau "Graphics Interchange Format" merupakan format grafis yang paling sering digunakan untuk keperluan desain website. Memiliki sedikit warna dibandingkan dengan JPEG, namun mempu menyimpan grafis dengan latar belakang (background) transparan dan dalam bentuk animasi. GIF menggunakan kompresi algoritma dari LZW (Lempel Zev Welch) yang dimiliki oleh Unysys dan hak cipta dipegang oleh Compu Serve Incorporated
GIF, or "Graphics Interchange Format," is the most commonly used graphic format for website design. It has fewer colors than JPEG, but can store graphics with transparent backgrounds and in animated formats. GIF uses the LZW (Lempel Zev Welch) compression algorithm, owned by Unisys and copyrighted by CompuServe Incorporated. 

Penggunaan file GIF
Sangat cocok untuk membuat sebuah logo dengan jumlah warna terbatas. Dapat digunakan untuk menyimpan warna sprite data game. Dapat digunakan untuk animasi kecil dan klip film dengan resolusi rendah. Karena gambar GIF terbatas hanya 256 warna, tidak cocok untuk format fotografi seperti JPEG.
How to Use GIF Files It is ideal for creating logos with a limited number of colors. It can be used to store color sprite data in games. It can be used for small animations and low-resolution movie clips. Because GIF images are limited to 256 colors, they are not suitable for photographic formats like JPEG.

Berikut struktur dari file GIF:
Here's the structure of a GIF file: 

  • Bagian kepala (header). Menyimpan informasi identitas file GIF (3 bytes, harus string "GIF") dan versinya (3 bytes, harus string "87a" atau "89a").
  • Global Screen Descriptor. Mendefinisikan logikal screen area dimana masing-masing file GIF ditampilkan.
  • Global Color Table. Masing-masing gambar dalam GIF dapat menggunakan global color table atau tabel earnanya sendiri-sendiri. Penggunaan GCT akan memperkecil ukuran file GIF.
  • Gambar 1, gambar 2, gambar 3, dan seterusnya... gambar n. Dimana masing-masing gambar memiliki struktur blok sendiri-sendiri dan terminator antar file.
  • Trailer. Akhir dari sebuah file GIF.
  • Header. Stores the GIF file's identity information (3 bytes, must be the string "GIF") and its version (3 bytes, must be the string "87a" or "89a"). 
  • Global Screen Descriptor. Defines the logical screen area where each GIF file is displayed. 
  • Global Color Table. Each image in a GIF can use its own global color table or color table. Using GCT will reduce the GIF file size. 
  • Image 1, Image 2, Image 3, and so on... image n. Each image has its own block structure and file terminator. 
  • Trailer. The end of a GIF file. 


Contoh gambar dengan format file GIF
Example of an image in GIF file format
Contoh gambar GIF