It means close. The X in the corner of a window, image viewer, or picture preview is the standard control for quitting whatever is currently open on your screen — click it and the thing disappears.
On Windows you will usually find it in the top-right; on macOS the equivalent is the red dot in the top-left. Either way, it is the "I'm done with this" button.