{% set thumbSize = 100 %} {% set maxThumbWidth = thumbSize %} {% set maxThumbHeight = "%d"|format(maxThumbWidth * 2/3) %}