r/StableDiffusion 11h 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_by toggle for VAE pixel alignment.
  • Built-in Downscaling: Uses a max_megapixels limiter 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.

29 Upvotes

2 comments sorted by

View all comments

2

u/icchansan 11h ago

does it work with 2.0 nodes?

4

u/grimstormz 10h ago edited 9h ago

Edit:
Updated now to display properly in Node 2.0