i converted an 8bit rgb .jpg file into .pgm using adobe photoshop and
a plugin from http://photoshop.pluginsworld.com/pl...-exporter.html
I want to check if this file can be properly displayed.
Image opening and show() in PIL fails to do it so i tried Tkinter
i created a canvas in a tkinter gui and tried
self.myimg=Phot oImage(file="my testpic.pgm")
self.selimgtag= self.canvorig.c reate_image(70, 100,image=self. myimg)
self.canvorig.u pdate_idletasks ()
this causes AttributeError snd says can't identify image file
I checked the asci text of .pgm file ,it starts with a line P2 and
then several lines with integers..can someone tell me if there is a
way to display this properly
thanks
W
a plugin from http://photoshop.pluginsworld.com/pl...-exporter.html
I want to check if this file can be properly displayed.
Image opening and show() in PIL fails to do it so i tried Tkinter
i created a canvas in a tkinter gui and tried
self.myimg=Phot oImage(file="my testpic.pgm")
self.selimgtag= self.canvorig.c reate_image(70, 100,image=self. myimg)
self.canvorig.u pdate_idletasks ()
this causes AttributeError snd says can't identify image file
I checked the asci text of .pgm file ,it starts with a line P2 and
then several lines with integers..can someone tell me if there is a
way to display this properly
thanks
W
Comment