i'm new in programming so i have some question about converting string to color image.
i have one data , it consists of Hex String, like a fff2f3..... i want to convert this file to png like this.
i can convert the hex data to png image through this site
but i don't know how to convert the hex data to png image using python code
but i tried to use Image.frombytes('RGB',(1600,1059),hex_str) but
i don't know image size , so i cannot use this method.
so My question is how can i convert this hex data to image using python code
please give me some advise , thank you :)


H * W == number_of_pixels.'RGBA'then there are 8 characters per pixel which would be 8192 pixels - so maybe the image size is 128x64 or 256x32 ...