MCPcopy Create free account
hub / github.com/MearaY/StegaPy / flush

Method flush

StegaPy/plugin/lsb/lsb_output_stream.py:34–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 self._buffer.extend(data)
33
34 def flush(self):
35 self._embed(bytes(self._buffer))
36 self.image = Image.fromarray(np.clip(self.pixels, 0, 255).astype(np.uint8))
37
38 def _embed(self, data: bytes):
39 bits_per_ch = self.config.get_max_bits_used_per_channel()

Callers 1

embed_dataMethod · 0.95

Calls 1

_embedMethod · 0.95

Tested by

no test coverage detected