The circular indent in the package points you towards pin 1, in the traditional orientation package diagram of DIP, SOIC and SSOP packages, pin 1 is almost always shown top left.
Thus, the two traditional standards for DIP are a marker at the top or a marker at the top left. Irrespective, if the chip is oriented with its marker to the top (or top left), pin 1 is ALWAYS at the top left.
To be clear in your picture’s orientation, which is at 90 degrees to a standard pinout diagram, the top row of pins is 8 7 6 5
Bottom row is 1 2 3 4.
If you turn your picture clockwise 90 degrees, the marker is at the top left, the same a standard DIP pinout diagram.
Edit: this is an interesting noob question, because it’s one of those things “everyone knows”. Except they don’t.
Edit 2: added some more details, I can’t help feeling my pudding is over egged now.
(What’s more frustrating is that for some packages, manufacturers sometimes show you the view from the bottom, not the top. I have never seen this for DIP though, markings are always shown from the top.)