How to Solve NameError: name 'TAGS' is not defined -- PIL

Solution: Import the 'TAGS' module

To Solve the error, add the following line to the top of your code.

from PIL.ExifTags import TAGS

 

For more information:
Python PIL TAGS