MCPcopy
hub / github.com/python-pillow/Pillow / load_prepare

Method load_prepare

src/PIL/ImageFile.py:435–441  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

433 return Image.Image.load(self)
434
435 def load_prepare(self) -> None:
436 # create image memory if necessary
437 if self._im is None:
438 self.im = Image.core.new(self.mode, self.size)
439 # create palette (optional)
440 if self.mode == "P":
441 Image.Image.load(self)
442
443 def load_end(self) -> None:
444 # may be overridden

Callers 3

loadMethod · 0.95
feedMethod · 0.45
loadMethod · 0.45

Calls 2

newMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected