A lightweight utility node that extracts the first and last frame from any video file or image batch. Supports dual input modes (file path + image batch), fallback sequential seeking, and is compatible with all ComfyUI versions.
18 lines
458 B
Python
18 lines
458 B
Python
"""
|
|
ComfyUI-FirstframeLastframeExtractor
|
|
====================================
|
|
Registers the First & Last Frame Extractor node with ComfyUI.
|
|
"""
|
|
|
|
from .nodes import FirstFrameLastFrameExtractor
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
"FirstFrameLastFrameExtractor": FirstFrameLastFrameExtractor,
|
|
}
|
|
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"FirstFrameLastFrameExtractor": "First & Last Frame Extractor 🎬",
|
|
}
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|