You don't have to imagine. Trump leaked a satellite photo from a spy satellite last year. Wired has a great piece on it: https://www.wired.com/story/trump-tweeted-a-sensitive-photo-...
Second, there is also value to letting your adversaries know what you are capable of. Just think of the hassle of hiding activities from a satellite like that - surely it takes a huge operational toll.
No matter what, it sounds to me like releasing the picture is within the presidential oversight. He was not naming spies or anything.
Are you suggesting it was ok for this pic to be released, and why?