This small script programmatically detects and displays orientation (landscape / portrait / square) for various images. After that, it also sorts them based on orientation.Made with vanilla JS.
Below are the landscape orientation images:
Below are the portrait orientation images: