Replies: 3 comments 3 replies
-
There was a similar error in #5034, where the user couldn't save a PNG, and concluded the problem was that they didn't have zlib enabled. If you run If you would just like to save an image, and don't care about the format, you could try saving a JPEG instead. |
Beta Was this translation helpful? Give feedback.
-
I tested directly it's ok |
Beta Was this translation helpful? Give feedback.
-
found the problem, I called from the destructor while the resource already unavailable, the solution is delete the class and then wait for a couple seconds to make sure resource still available |
Beta Was this translation helpful? Give feedback.
-
Why I could not save Image to file ? is there any dependency ? I am using release 9.1.1, here is my code :
im = Image.frombytes('L',(self.iwidth,self.iheight),bytes(self.ibuff))
im.save('/data/'+self.fname+'.png',format='PNG')
and got error :
KeyError: 'PNG'
Beta Was this translation helpful? Give feedback.
All reactions