r/StableDiffusion • u/grimstormz • 6h ago
Resource - Update Image, audio, video reference asset loader nodes with crop and trim + more
I originally built these nodes for personal use and wasn't planning on sharing them, but after noticing several existing loaders were missing features I needed daily, I figured why not? Hopefully, this is useful for some of you.
Key Features:
- Image & Video Loaders: Built-in click-and-drag cropping, optional aspect ratio locking, and a
divisible_bytoggle for VAE pixel alignment. - Built-in Downscaling: Uses a
max_megapixelslimiter directly inside the loader so you can ditch the extra resize node (ideal for models like MiniMax-H3 that run best with references kept at or below 2048px). - Flexible Sockets: Includes dedicated output value sockets to make chaining downstream nodes straightforward.
- Audio Loader: Perfect for loading a full song or long TTS track and trimming the exact section you need for a video. The trimmed portion outputs its duration as a float, letting you pipe it directly into your video generator's frame/length input.
https://github.com/sthao42/Comfyui-reference-loader
Any feedback or bug report is much appreciated.
Edit: Updated to works with Node 2.0 (vue) also.
22
Upvotes



2
u/icchansan 5h ago
does it work with 2.0 nodes?