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

Function _cover_bytes

tests/test_e2e.py:28–31  ·  view source on GitHub ↗
(width=256, height=256)

Source from the content-addressed store, hash-verified

26# ── 辅助 ──────────────────────────────────────────────────────────────
27
28def _cover_bytes(width=256, height=256) -> bytes:
29 buf = io.BytesIO()
30 Image.open(IMG_PATH).resize((width, height)).save(buf, "PNG")
31 return buf.getvalue()
32
33
34def _make_stegapy(plugin, cfg):

Calls

no outgoing calls

Tested by

no test coverage detected