I am using imagamagick to convert a file and write it to standard out
Code: Select all
convert inimg.bmp jpeg:-
Code: Select all
convert inimg.bmp jpeg:- | python program.py
Code: Select all
import sys
import Image
imConvertOut= sys.stdin # IM convert output
pilImage = Image.open(imConvertOut)
pilImage.show() #just displays the image
Thanks in advance for your help.
cheers,
p.