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

Method get_data_url_pattern

lightx2v/server/media/image.py:25–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 extension = get_file_mimetype(data).removeprefix("image/").removesuffix("-sequence")
24 if extension in ("heic", "heif"):
25 return extension
26 return super()._extension_from_signature(data)
27
28
29_handler = ImageHandler()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected