From 5110222c1d06c2b9c04864fecf8ec25f79749f7e 2017-08-18 12:58:05 From: Min RK Date: 2017-08-18 12:58:05 Subject: [PATCH] restore transpose of jpeg x,y x, y were reversed in earlier commit --- diff --git a/IPython/core/display.py b/IPython/core/display.py index 40b55f2..bf722ea 100644 --- a/IPython/core/display.py +++ b/IPython/core/display.py @@ -951,7 +951,8 @@ def _jpegxy(data): # read another block idx += 2 - return struct.unpack('>HH', data[iSOF+5:iSOF+9]) + h, w = struct.unpack('>HH', data[iSOF+5:iSOF+9]) + return w, h def _gifxy(data): """read the (width, height) from a GIF header"""