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

Solution: Import the 'PngInfo' module

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

from PIL import PngInfo

 

For more information:
Python PIL PngInfo