Imports PIL.PngImagePlugin that was assumed to be loaded as part of PIL but isn't guaranteed to be loaded before this code is called.
Motivation
Adds an import statement to avoid an error when PIL is partially loaded resulting in the following error: AttributeError: module 'PIL' has no attribute 'PngImagePlugin'. This was already mentioned but not resolved in #178.
Type of change
Bug Fix
Checklist
[x] I have performed a self-review of my code.
[x] I have added detailed comments to my code where applicable.
[x] I have verified that my change does not break existing code.
[x] My PR is based on the latest changes of the main branch (if unsure, please run git pull --rebase upstream main).
[x] I am familiar with the Google Style Guide for the language I have coded in.
Description of the change
Imports
PIL.PngImagePlugin
that was assumed to be loaded as part of PIL but isn't guaranteed to be loaded before this code is called.Motivation
Adds an import statement to avoid an error when PIL is partially loaded resulting in the following error:
AttributeError: module 'PIL' has no attribute 'PngImagePlugin'
. This was already mentioned but not resolved in #178.Type of change
Bug Fix
Checklist
git pull --rebase upstream main
).Fixes: #178