Monday, November 19, 2018

Maths

Here's some algae bra for you that I learned in school. It's useful in unexpected ways.

Here on Lem's Levity we put up a lot of videos but the thing is they must fit in this space. When the embed code is copied there are numbers for width and height of the video. And they vary quite a lot. The size here must be no larger than 525 width. The height doesn't mater, it will fit no matter what.

Say the embed code says the video will display at width:713 and height:401, then I can open up Photoshop and pretend those are the dimensions for a new document. Create the new document with those dimensions. Then change the width to 500 and Photoshop will automatically change the height to height:281.

But I have to open up Photoshop for its ratio conversion ability and there's another window open on my little laptop.

How is that done through maths?

Algebraically it goes:

713 = 500
401      X

What you do to find X is multiply 401x500 then divide by 713.

401x500=200500

Then 200500÷713=281

Then X=281

So which way is easier?

Photoshop. Duh. Everyone hates algebra.

No comments: