Quick tip for anyone in the future installing this. You need to make sure you install Pillow as administrator from the command prompt or it will install to the incorrect library folder location and you will get this error when trying to generate a texture:
File "C:\Users\****\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\PSX tools\psx_addon.py", line 213, in execute
temp_image = Image.new("RGBA", (resolution, resolution))
^^^^^
NameError: name 'Image' is not defined. Did you mean: 'image'?
You can verify the install location by running the show command:
"<path-to-blender>\4.5\python\bin\python.exe" -m pip show Pillow
This is the incorrect install location:
C:\Users\****\AppData\Roaming\python\python311\site-packages
The correct install location should be:
C:\Program Files\Blender Foundation\Blender 4.5\4.5\python\lib\site-packages
Newer versions of Blender no longer look in the users path for python libraries. I believe this was changed in Blender 4.2 so if you are running a later version this is most likely the problem.
If the install location is wrong, you can either move the "PIL" folder and the "pillow-11.3.0.dist-info" folder from the users install location to Blenders install location.
Or you can run the original install command again as admin
"<path to blender>\4.5\python\bin\python.exe" -m pip install Pillow
which should correctly install to Blenders library location.
This worked for me on Blender 4.5. Be sure to replace any version numbers in the examples with your version of blender and any **** with your user name.