Obsidian Sync+External GDrive (for Images) = Perfect Solution? (Plugin to Solve Vault Size Issues)

Hello! I implemented this without a plugin, the gist is this: my notes, which I store on a local drive, are synchronized with google drive. For Google Drive, a google script works, which looks through my notes and if it finds a picture in them, it creates a link to it.
As a result, all my notes with pictures, as well as, for example, pdf files contain links to Google Drive.
In addition, this method (using a google script) allows you to carry out other automations for which there are no plugins. If you need details, write.