How to download Snippet from NI Web Site as Snippet?

It is a very funny fact that the NI’S Web Site doesn’t support NI’s Snippets properly, especially on NI Forum, where the Snippets used actively to exchange the small pieces of the LabVIEW code. Here how you can get code from such snippets.

Technically the Snippet is just PNG file with custom private data, where the copy of the code is placed.

For example, this Solution with Snippet:

Re: ArraytoColorimage

Looks like that:

image-20241121130350037

This is how this snippet embedded into web page:

image-20241121130126244

and this caused removal of the custom data.

The easiest way to download original snippet is the following, using Download Button, and not “Save as…” from Browser:

image-20241121154557559

Or, if you need a link to the original image, then using ID.

When you will click on that image, then the following link will be opened:

forums.ni.com/t5/Machine-Vision/ArraytoColorimage/m-p/4407485?lightbox-message-images-4407485=340566iF9B1AC35575C9CD6#M54603

Or if you will copy the address of the image, then the following:

https://forums.ni.com/t5/image/serverpage/image-id/340566iF9B1AC35575C9CD6/image-size/large?v=v2&px=999

Here important is ID: 340566iF9B1AC35575C9CD6

Now you should use this ID on the following link:

https://forums.ni.com/t5/image/serverpage/image-id/340566iF9B1AC35575C9CD6

(another link mentioned here — Resolve links to VI snippets):

https://ni.i.lithium.com/t5/image/serverpage/image-id/340566iF9B1AC35575C9CD6

Currently both direct links working: Link 1 and Link 2.