Skip to content

steffakasid/aspect-ratio-filter.lrplugin

Repository files navigation

ASPECT-RATIO-FILTER.LRPLUGIN

This is a simple Lightroom Plugin which enables Adobe Lightroom to filter based on the aspect ratio of the photos. Basically the plugin just adds a custom metadata field - which is searchable - to all images and sets the value to the already existing aspect ration read from the metadata of the photo. When doing this the numeric aspect ratio is translated into a textual aspect ratio (e.g. 2:3). Additionally there the following options available to to reset the aspect ratio custom metadata via library action (Library → Plugin Extras → Aspect Ratio Filter)

Aspect Ratio Filter (current photos)

Aspect Ratio will be reset on all photos in the film strip or the selected photos.

Aspect Ratio Filter (all photos)

Aspect Ratio will be reset on all photos in the catalog.

Versioning

This plugin follows Semantic Versioning 2.0.0!

Usage

Just download a release bundle or clone this repository to a location of your choice and add it via File → Plugin Manager to Adobe Lightroom. When you add the plugin the first time, it will automatically update all of your pictures in the catalog with the custom aspect ratio metadata.

Logging and Debug Infomation

If you want to enable logging create a config.lua file in:

windows

C:\Users\${USERNAME}\AppData\Roaming\Adobe\Lightroom

mac

${HOME}/Library/Application Support/Adobe/Lightroom/config.lua

This file must have the following contents:

link:./config.lua[role=include]

Logfiles are then placed in:

windows

C:\Users\${USERNAME}\Documents\LrClassicLogs\AspectRatioFilter.log

mac

${HOME}/Documents/LrClassicLogs/AspectRatioFilter.log

Important
You must restart Adobe Lightroom for initialisation and changes on that file.

TODO

  1. Strange error when using LrProgressScope

  2. Maybe add the possibility to view the Metadata in a custom TagSet

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages