Here is an article that explains how to read the EXIF data of an image using the ImageMagick plugin and the gh_imagemagick library in Lua (or in Python):
http://www.geeks3d.com/hacklab/20180608/how-to-read-exif-data-with-imagemagick-plugin/
(http://www.geeks3d.com/public/jegx/2018q2/geexlab-imagemagick-exif-information-demo-01.jpg)