MCPcopy 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
1090def _gifxy(data):
1091 """read the (width, height) from a GIF header"""
1092 return struct.unpack('<HH', data[6:10])
1093
1094
1095class Image(DisplayObject):

Callers 1

_retina_shapeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected