How to fix "IOError: decoder jpeg not available"
I have stuck when I compile these code in SageNotebook:
from PIL import Image
img=Image.open("/home/pmath/Music/im1.jpg")
img2=img.convert("L")
img2.save("/home/pmath/Music/secretimage.pgm")
img=Image.open("/home/pmath/Music/secretimage.pgm")
pix=img.load()
print pix
The following errors occur :
Traceback (click to the left of this block for traceback)
...
IOError: decoder jpeg not available
But when I compile these codes with python on the same OS(ubuntu32bit 16.04) it works well. The problems occur only on Sage. How can i fix this issue?
How did you install Sage? Did you build it from source? Did you download a binary for your OS?
@slelievre I have installed Sage using the following terminal commands :
The aims/sagemath repository is no longer kept up-to-date.
Where did you find instructions to install Sage that way?
Which version of Sage did this get you? Sage 7.6?
There is now a Debian package, which you can install in Debian >= 9 and also in Ubuntu >= 18.04.
Just do
This will install Sage 8.1 and soon should offer Sage 8.3.