← View all entries

Ratio Comparator

When it was time to do an audit of the different image sizes in a Drupal site, I found that there were quite a few image ratios... Just how different were they? I had to find out of course.

This script accepts a json array of objects containing name and ratios and outputs semi transparent rectangles stacked over each other with their respective label.