Use the iOS share sheet to export an image or pdf from any application and run this shortcut:
[removed link] see below.
It will prompt you to preview/markup the file, create a new note using the the filename as note title and attach your image or pdf file to the note as a GIF.
The shortcut creates the note in a project called Snippets. You may want to change this location.
This version will handle any file type: