Problem:
~$ simple-image-reducer
Traceback (most recent call last):
File "/usr/bin/simple-image-reducer", line 28, in <module>
import Image
ImportError: No module named Image
Reason:
Image != image
It is a bug 1825832.
Please login to launchpad and click "This bug affects you and 1 other person" to confirm that this bug affects you.
The solution from proposed patch is simple - use PIL instead of Image.
We can apply the patch programmatically without installing other stuff:
sudo sed -i "s/^import Image/from PIL import Image/" /usr/bin/simple-image-reducer
1) make sure it is available
python -m pip install Image
2) where is it available?
sudo find ~ -name image -type d
-->> directory /home/MyHomeDir/.local/lib/python2.7/site-packages/image ->> OK
3) Tell simple-image-reducer via link:
ln -s ~/.local/lib/python2.7/site-packages/image ~/.local/lib/python2.7/site-packages/Image
4)
invoke simple-image-reducer
again.
Works:-)
Rem: Ubuntu 19.10, 19.04