2013年9月15日星期日

Different picture formats , what it is not the same .

. jpg,
. gif
. bmp

usually modify extension can display the picture. What is the difference of its internal data yet.
------ Solution ---------------------------------------- ----
digital image Processing However, forget ,
------ Solution --------------------------------- -----------
magic number length :
JPEG, JPG: 2
BMP: 2
PNG: 8
GIF: 6

magic number :
JPEG, JPG: 0xFF 0xD8
BMP: 0x42 0x4D
PNG: 0x89 0x50 0x4E 0x47 0x0D 0x0A 0x1A 0x0A
GIF87a: 0x47 0x49 0x46 0x38 0x37 0x61
GIF89a: 0x47 0x49 0x46 0x38 0x397 0x61

------ Solution ------------------------------------ --------
data is stored in different ways

没有评论:

发表评论