Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
528 views
in Technique[技术] by (71.8m points)

Python: Hexadecimal string to image conversion?

I do have a string that must contain graphical data. The string looks like this:

0x32 0x3c 0x2e 0x33 0x34 ...

How can I convert and / or display this in Python into an image or image file? I already looked for a solution, but most articles provided help for string in other formats which all look different. Most of them look like this:

0000D4948445200000124000001150802000000C6BD0FB30000 ...

A simple procedure for conversion and save as PNG, JPG or TIF would be great. Displaying the picture in a window using the image library Pillow would be even better.

Thanks in advance! Ulrich

question from:https://stackoverflow.com/questions/65918412/python-hexadecimal-string-to-image-conversion

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...