MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / load_image

Method load_image

lightx2v/utils/service_utils.py:143–146  ·  view source on GitHub ↗
(self, image_base64: bytes)

Source from the content-addressed store, hash-verified

141 return base64.b64encode(self.buffer.getvalue()).decode("utf-8")
142
143 def load_image(self, image_base64: bytes) -> Image.Image:
144 image_bytes = base64.b64decode(image_base64)
145 with io.BytesIO(image_bytes) as buffer:
146 return Image.open(buffer).convert("RGB")

Callers

nothing calls this directly

Calls 2

convertMethod · 0.80
openMethod · 0.80

Tested by

no test coverage detected