Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ hight_width
Method
hight_width
recipes/Python/578534_parse_png_image/recipe-578534.py:8–12 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
6
data=None
7
CRC=None
8
def
hight_width(self):
9
if
self.type==
'IHDR'
:
10
width=int(self.data[0:8],16)
11
hight=int(self.data[8:16],16)
12
return
[width,hight]
13
14
15
class
PNG:
Callers
1
Find_Chunks
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected