The application throws a FileNotFoundError when attempting to open the overlay file in the generateMinia function. The error occurs because the expected overlay file minia_center.png is not found in the directory
Traceback (most recent call last):
File "C:\ProgramData\anaconda3\Lib\site-packages\flask\app.py", line 2529, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\site-packages\flask\app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\site-packages\flask\app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\thoma\Desktop\GTFR\Artwork\app.py", line 58, in upload_file
generateMinia(output_bg, logo_position, output_minia)
File "c:\Users\thoma\Desktop\GTFR\Artwork\functions.py", line 50, in generateMinia
overlay: Image.Image = Image.open(overlay_file)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\site-packages\PIL\Image.py", line 3247, in open
fp = builtins.open(filename, "rb")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\thoma\\Desktop\\Artwork\\Miniatures\\minia_center.png'
The application throws a FileNotFoundError when attempting to open the overlay file in the generateMinia function. The error occurs because the expected overlay file minia_center.png is not found in the directory