{% assign image_handle = include.image_handle %} {%- assign imageX = page.images[image_handle].size | split: ', ' | first -%} {%- assign imageY = page.images[image_handle].size | split: ', ' | last -%} {% assign cX = '' | split: ',' %} {% assign cY = '' | split: ',' %} {% for item in page.images[image_handle].labels %} {% assign ix = item.coord | split: ', ' | first %} {% assign iy = item.coord | split: ', ' | last %} {% assign cx = ix | times: 100 | divided_by: imageX | append: ', ' %} {% assign cy = iy | times: 100 | divided_by: imageY | append: ', ' %} {% assign cX = cX | push: cx %} {% assign cY = cY | push: cy %} {% endfor %}