Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ _gifxy
Function
_gifxy
IPython/core/display.py:1090–1092 ·
view source on GitHub ↗
read the (width, height) from a GIF header
(data)
Source
from the content-addressed store, hash-verified
1088
return
w, h
1089
1090
def
_gifxy(data):
1091
""
"read the (width, height) from a GIF header"
""
1092
return
struct.unpack(
'<HH'
, data[6:10])
1093
1094
1095
class
Image(DisplayObject):
Callers
1
_retina_shape
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected