Media orientation
198 sites
Security covered
This module allows you to store and use image orientation data (landscape, portrait, square) within Drupal's media system. It enables displaying or filtering media based on its orientation and includes a Drush command to re-save existing media to add this orientation information.
What does it do?
For media image types it allows you to select a field where the orientation information about the image is saved.
This information can be used to display the orientation and or to filter upon this orientation in the media library.
Also contains a drush command to re-save all media of a specific bundle. (So that orientation is added/saved for existing media)
@usage mo:resave image
How to
- Have a media Image type
- Install media & this module
- Create a list field of numbers on the media type with:
1|Landscape
2|Portrait
3|Square - Select the list field of numbers for Media orientation (On the media type configuration page)
- Adapt the Media library view for example or the form display to display this orientation