I'm trying to create a program to get specific EXIF information of a jpeg without using PIL and such. I'm reading the file in binary but the output is slightly confusing...
file = open("/Users/Niko/Desktop/IMG.JPG", "rb")
print(file.read(16))
Which outputs:
b'\xff\xd8\xff\xe1/\xfeExif\x00\x00MM\x00*\x00\x00\x00\x08\x00\x0b\x01\x0f\x00\x02\x00\x00\x00\x06\x00\x00'
What I'm confused about is what the "\","/", and "*" mean... I know that the first few bytes that signify its a jpeg is 0xFF 0xD8, so I take it the \s are 0s? Can anyone help me understand this?
Apologies for any beginners mistakes, new to coding in general and kind of just jumped in to creating this program.