Hi I would like to know if the factory images for the Nexus found on this link Nexus images can also be flashed onto other devices other than the nexus devices only maybe other LG phones or SAMSUNG phones
Short answer, No.
Nexus images are built for the specific hardware in the device. This is true for all devices, even variants of the same device. For example, You may not be able to install a ROM that is for the LG G3 D855, the international version of the device, on the LG G3 D851, the T-mobile version. Even though the D851 and the D855 are very close to being the exact same device. They are even closer than the D850 (AT&T version) and the D851 are to each other.
Even the slightest hardware differences requires different drivers and configurations. For this reason, it requires the manufacturers (or ROM developer) to build specifically for a device.
See can I flash nexus factory image to any tablet as it is related as well.
No they wont work on devices other than nexus because nexus uses pure android while OEMs uses modified android.