Most of us use the built-in Share Button on the Keyboard Maestro Editor toolbar to upload macros and/or images to the Keyboard Maestro Forum.
On occasion it may be desirable to create a local image file for use in the forum or elsewhere.
That's not very convenient if you do it all by hand, but then what do we have Keyboard Maestro for? Let's use a macro.
If you select a macro the whole macro will be imaged.
If you select one or more actions it/they will be imaged.
The image file will be revealed in the Finder ready for whatever use you want to put it to.