Skip to main content
7 of 12
deleted 1 character in body
Kadir Şahbaz
  • 78k
  • 57
  • 257
  • 404

Import EXIF - Metadatas's into attributes fields in QGIS

I would like to import EXIF & metadatas of JPG images into QGIS. For each image, a vector were created by 'ImportPhotos' pluggin, it adds some EXIF into attributes fields but some importants EXIF informations are missing.

I would like to create a python script to run a batch for every feature (img imported by ImportPhotos) of a layer. The task would :

  • import all EXIF datas of images stored at the path located into the attribute field named "Path"

  • create a column (attribute field) for every EXIF TAG and import the data inside

      import PIL.Image
      img = PIL.Image.open('img.jpg')
      exif_data = img._getexif()
    

This code should read the EXIF but this is my first experience in Python and I'm not able to finish the job.

zlikotp
  • 34
  • 2
  • 19