Message from Python discussions

December 2018

— Try:
0.3*2==0.6
0.2*3==0.6
And enjoy with the answer in python

— 

Hi! I am trying to get EXIF metadata from image (XPKeywords to be more precise), but all I get is (74, 4, 59, 0, 116, 0, 101, 0, 115, 0, 116, 0, 0, 0) instead of "ъ;test". I am using piexif library

— XnView recognizes tags properly

— Hm

— 

from PIL import Image
import piexif
image = Image.open("IMG_20181118_210156_922.jpg")
exif = piexif.load(image.info["exif"])
print(exif["0th"]["0x9c9e"])

My code

Message permanent page

— True, becuz not all floating point numbers can be expressed in binary

— Can you dump whole exif on something like pastebin?

— 

{'0th': {34665: 2110, 40094: (74, 4, 59, 0, 116, 0, 101, 0, 115, 0, 116, 0, 0, 0)}, 'Exif': {}, 'GPS': {}, 'Interop': {}, '1st': {}, 'thumbnail': None}

Message permanent page

— It's not that long

— That key ["0x9c9e"]

— I fixed that already, still nothing

— Can you try it with a picture taken on some legit device? Like a camera?