parameters: (self)
docstring: load pixel-doubled width and height from image data
docstring_summary: load pixel-doubled width and height from image data
docstring_tokens: load pixel - doubled width and height from image data
function: def _retina_shape(self):
          """load pixel-doubled width and height from image data"""
          if not self.embed:
              return
          if self.format == self._FMT_PNG:
              w, h = _pngxy(self.data)
          elif self.format == self._FMT_JPEG:
              w, h = _jpegxy(self.data)
          elif self.format == self._FMT_GIF:
              w, h = _gifxy(self.data)
          else:
              # retina only supports png
              return
          self.width = w // 2
          self.height = h // 2
function_tokens: def _retina_shape ( self ) : if not self . embed : return if self . format == self . _FMT_PNG : w , h = _pngxy ( self . data ) elif self . format == self . _FMT_JPEG : w , h = _jpegxy ( self . data ) elif self . format == self . _FMT_GIF : w , h = _gifxy ( self . data ) else : # retina only supports png return self . width = w // 2 self . height = h // 2