Hi!
I'm trying to convert an image from a colourful jpg to a gray scale image. I am trying to follow the 'image editing' tutorial (can be found here).
I initially load the image into variable img :
Now, I transpose it (or do any action on the variable img). But, I finally need to save it as a grayscale image. Hence, I try to save it with the command -from graphics import *
img = Image.open("D:\\colour.jpg")
The idea is to save the image with a 1 byte per pixel (bpp=1) and without any further compression (compression="no"). However, when I give the command and access the grayscale.jpg image, it is exactly the same as the initial image (==> no grayscale conversion occurs).img.save("D:\\grayscale.jpg", quality=100, bpp=1, compression="no")
Have I missed out some step in the transformation of the colour to the grayscale image?
Thanks for the help..
Kedar

Reply With Quote

