Jump to content

Ratio Calculator Workflow


Recommended Posts

Posted (edited)

I frequently need to calculate aspect ratios and dimensions when resizing images, so I wrote a ratio calculator plugin for Alfred to make the calculation as efficient as possible.

 

example.gif

 

It works by reading a simplified ratio equation syntax in the form of a b c d where a, bc, and d represent the numerators and denominators in an a/b=c/d ratio equation. Any non-number character (like x or n or ? or whatever you like) can be used to represent the missing number.

 

E.g., to get the missing number in the ratio 2/4=?/10, you can type as 2 4 ? 10 and Alfred will return 5, ready to be copied to the clipboard.

 

Installation instructions and source on GitHub

 

Download Ratio Calculator.alfredworkflow

Edited by matthewmcvickar
  • 4 years later...
Posted

Very cool.

I recently started doing more with video and photography. Keeping this in Alfred has helped me tremendously while trying to maintain certain aspect ratios with different pixel numbers.

Thank you, Matthew, for creating this so many years ago — and it still works 💪.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...