Almost every graphic file has a certain 'header part' in the file to identify the nature of the bitmap/video, before the actual data begins.
When e.g. a file gets the wrong extension to associate with, causing trouble, it's important to check the header line of the file, to identify which format one really is dealing with. So it can be corrected.
This can be checked by opening the bitmap-file with an ascii-editor, like NotePad or equivalents.
Codes will be there, probably shown as blocks, but some recognizable strings will be shown at the first lines.
Bitmaps:
BMP - First chars : "BM"
JPG - On first line : "JFIF"
JPG - From camera with EXIF data : On first line "Exif", two blocks, then "II"
PNG - On first line : "PNG"
GIF - First chars : "GIF89a" (very old GIFs : "GIF87")
TIF - (no compression) First chars : "II" or "MM"
JP2 - On first line : "jP"
PSP - First chars : "Paint Shop Pro Image File"
Video:
MPG - After three codes : "º!" (hex: BA 21)
AVI - On first line : "RIFF" and "AVI LIST"
WMV - First chars : "0&²uŽfÏ" (hex: 30 26 B2 75 8E 66 CF)
FLV - First chars : "FLV"
RM - First chars : ".RMF"
SWF - First chars : "FWS"
MP4 - On first line : "mp41"
MOV - Variable so far. I noticed the presence of the string "moov"
Some audio formats as well:
WAV - On first line : "RIFF" and "WAVEfmt"
WAV - (Compressed ADPCM) "RIFF" and "WAVEfmt 2"
AU - First chars : ".snd"
IFF - (Amiga) Some strings : "FORM - SVXVHDR - CHAN - BODY"
AIF - (Apple) Some strings : "FORM - AIFFCOMM - SSND"
WMA - First chars : "0&²uŽfϦ٠ª bÎl" (hex: 30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C)
OGG - First chars : "OggS"
FLAC - First chars : "fLaC"
RA - First chars : ".RMF"
Some other formats:
ZIP - First chars : "PK"
When e.g. a file gets the wrong extension to associate with, causing trouble, it's important to check the header line of the file, to identify which format one really is dealing with. So it can be corrected.
This can be checked by opening the bitmap-file with an ascii-editor, like NotePad or equivalents.
Codes will be there, probably shown as blocks, but some recognizable strings will be shown at the first lines.
Bitmaps:
BMP - First chars : "BM"
JPG - On first line : "JFIF"
JPG - From camera with EXIF data : On first line "Exif", two blocks, then "II"
PNG - On first line : "PNG"
GIF - First chars : "GIF89a" (very old GIFs : "GIF87")
TIF - (no compression) First chars : "II" or "MM"
JP2 - On first line : "jP"
PSP - First chars : "Paint Shop Pro Image File"
Video:
MPG - After three codes : "º!" (hex: BA 21)
AVI - On first line : "RIFF" and "AVI LIST"
WMV - First chars : "0&²uŽfÏ" (hex: 30 26 B2 75 8E 66 CF)
FLV - First chars : "FLV"
RM - First chars : ".RMF"
SWF - First chars : "FWS"
MP4 - On first line : "mp41"
MOV - Variable so far. I noticed the presence of the string "moov"
Some audio formats as well:
WAV - On first line : "RIFF" and "WAVEfmt"
WAV - (Compressed ADPCM) "RIFF" and "WAVEfmt 2"
AU - First chars : ".snd"
IFF - (Amiga) Some strings : "FORM - SVXVHDR - CHAN - BODY"
AIF - (Apple) Some strings : "FORM - AIFFCOMM - SSND"
WMA - First chars : "0&²uŽfϦ٠ª bÎl" (hex: 30 26 B2 75 8E 66 CF 11 A6 D9 00 AA 00 62 CE 6C)
OGG - First chars : "OggS"
FLAC - First chars : "fLaC"
RA - First chars : ".RMF"
Some other formats:
ZIP - First chars : "PK"
Comment