Convert base64 image to image files

What I’m trying to do

  • I use nattynote to take notes on youtube videos
  • It produces html file with base64 encoded image. It causes large note file size (many images)
  • When I paste the note into obsidian, it freezes for few minutes. The final note size was 4.5MB for 5 images. My notes usually contain 50-60 images.

Things I have tried

  • Tried local image plus plugin. Obsidian still freezes for a few minutes.
  • Searched the forum and docs

Is there a way to convert the base64 images to image data in clipboard before pasting to obsidian ? So upon pasting, obsidian will create the attachment as separate file.

Maybe autohotkey can be used ?