I am having the same problem. I can not save this image after i edit its
data.
im = myimage.load()
...do stuff to im...
im.save('jeff', JPEG)
Traceback (most recent call last):
File numberfinder.py, line 116, in module
main()
File numberfinder.py, line 97, in main
imL =
Thanks. This is what I was looking for. So , after changing the pixel [0,0],
how do we save the modified image?
On Tue, Aug 12, 2008 at 3:03 AM, Fredrik Lundh [EMAIL PROTECTED]wrote:
Talat Fakhri wrote:
I am a newbie here. I would like to know if there is any function which
converts Images
Talat Fakhri wrote:
Thanks. This is what I was looking for. So , after changing the pixel
[0,0], how do we save the modified image?
the same way as you'd save any PIL image:
http://effbot.org/tag/PIL.Image.Image.save
you have read the tutorial, right?
Hi,
I am a newbie here. I would like to know if there is any function which
converts Images to Matrix(RGB or greyscale etc) and another function which
converts the matrix into Image file?
Thanks.
PS: I have dug in mail archives and PIL, but could not conclusively find the
solution.
Talat Fakhri wrote:
I am a newbie here. I would like to know if there is any function which
converts Images to Matrix(RGB or greyscale etc) and another function
which converts the matrix into Image file?
matrix as in?
If you just want to work with the image data as Python sequence, use
Fredrik Lundh wrote:
matrix as in?
If you just want to work with the image data as Python sequence, use
getdata/putdata, or pixel access objects:
im = Image.open(image.jpg)
pix = im.load()
pix[0, 0]
(226, 162, 125)
pix[0, 0] = (0, 0, 0)
or convert to numpy arrays:
#
I'm doing a project in Python. It's a capture and process a image, I'm using
PIL for images and scipy (together numpy) for processing, about fft, filter,
etc..
I'm needing to convert a image in a matrix type, can anyone help me?
Thanks.
Alex.
Alex Torquato S. Carneiro wrote:
I'm doing a project in Python. It's a capture and process a image, I'm
using PIL for images and scipy (together numpy)
I'm needing to convert a image in a matrix type, can anyone help me?
The latest version of PIL supports this directly, you can do:
M =