Skip to content

Detect & display image orientation, sort the images based on detected orientation

Notifications You must be signed in to change notification settings

zkriszti/image-orientation-detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detect image orientation & sort images by orientation

A basic, small .js project. It checks the orientation of the provided images by a simple calculation, then displays the value (landscape or portrait) on the image.

After detection, it also performs a sort: landscape and portrait oriented images are displayed in two separate blocks. It works by cloning the node, but it would be easy to transform it in a way to remove the item from the original collection.

Accessibility

  • designed and built to be mobile-first & responsive

Built with

  • vanilla JavaScript
  • HTML5 + CSS3
  • no external libraries used

Live version

https://codepen.io/zkriszti/full/vpePKJ/

About

Detect & display image orientation, sort the images based on detected orientation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published