I'm facing an strange problem with PIL. Whenever I am compiling the following code with python everything is ok:
from PIL import Image
file=Image.open("si.jpg") 
file2=file.convert("L")
pix = file2.load()
print pix
colsize,rowsize=file2.size
for i in range(rowsize):
    for j in range(colsize): 
        if pix[j,i]>250:
            pix[j,i]=250
file2.save("ci2.pgm")
But when I compile the above code in SageMath Notebook, it gives an error  “IOError: decoder jpeg not available”. Here is the scrrenshot :
 I have found a similar problem here, but these solution does not work for me. My OS is Ubuntu 16.04 (32bit).
The  image link :
I have found a similar problem here, but these solution does not work for me. My OS is Ubuntu 16.04 (32bit).
The  image link : )
I want to get solution for SageMath. How do I solve this issue?
)
I want to get solution for SageMath. How do I solve this issue?
 
     
    