Page 1 of 1

How to covert image data to string

Posted: Sun Mar 15, 2020 6:14 am
by skylin008
hello, every one! How to convert the Image data to string or list data .Thanks !

Re: How to covert image data to string

Posted: Sun Mar 15, 2020 12:35 pm
by kwagyeman
compress() on the image. It's then a jpg byte string. If you want the image in a string with an rgb value per byte you can manually write python code to access each pixel and spit out text.