This is the code I am trying and errors I get,
>>> image = Image.new(mode='RGB', size = (10, 10))
>>> image.convert('JPG')
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python24\Lib\site-packages\PIL\Image.py", line 612, in convert
im = im.convert(mode, dither)
ValueError: conversion from RGB to JPG not supported
>>> image.convert('jpg')
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python24\Lib\site-packages\PIL\Image.py", line 612, in convert
im = im.convert(mode, dither)
ValueError: conversion from RGB to jpg not supported
>>>
Basically I want to create an image, do some drawing on it and get the image
as byte array. I am obviously missing some basic step, but I can't figure
out what :(
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig