I have just done some image processing using the Python image library (PIL) using a post I found earlier to perform fourier transforms of images and I can't get the save function to work. The whole...
79 Use Pillow which is the "new" or the replacement of PIL, but has the same-named modules to preserve compatibility: ... Also, as suggested in the comments, maybe you are just using the wrong python binary, try to check if you're in/out of a virtual environment or check differences between vs vs on your system:
PIL's built-in show() method is the simplest possible version of the "script some other program to show it". (On earlier Windows systems you'd end up with a whole bunch of MSPaint windows.) It was worth suggesting and trying even if it didn't work.
In Windows 10 for those struggling to install PIL/pillow while coding on PyCharm and have Python 3.10.6 proceed as follows; Close PyCharm IDE Open and Run CMD.exe prompt as Administrator
I checked and objects returned by urllib2.urlopen(url) do not seem to have a seek method according to dir. So, what do I have to do to be able to load an image from the Internet into PIL?
How do I open an image from the internet in PIL? - Stack Overflow
The Python 3 documentation for PIL says that thumbnail only works if the resulting image is smaller than the original one. Because of that I would guess that using resize is the better way.