How to print width and height of an image using structs packing and unpacking? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to print width and height of an image using structs packing and unpacking?

7th Jun 2018, 4:20 PM
AISHWARYA KASTHALA
AISHWARYA KASTHALA - avatar
2 Answers
+ 1
ill try this..thanks
7th Jun 2018, 4:41 PM
AISHWARYA KASTHALA
AISHWARYA KASTHALA - avatar
0
Are you talking about using this syntax with image data? n = struct.unpack('<q', struct.pack('<d', x))[0] (copied from one of my private codes that is not processing images, but something else)
7th Jun 2018, 4:40 PM
Kirk Schafer
Kirk Schafer - avatar