From 3f8ab5493393ac49a2b8710921c9a22e601d8973 Mon Sep 17 00:00:00 2001 From: Kai Date: Fri, 13 Mar 2020 17:12:46 +0100 Subject: [PATCH] use actual full image --- neat.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neat.js b/neat.js index b142a3a..d4234b8 100644 --- a/neat.js +++ b/neat.js @@ -182,6 +182,10 @@ function setupInterface(data, file, urls) { width = max_right - min_left; height = max_bottom - min_top; + img_url = img_url.replace("left,top,width,height", "full") + img_url = img_url.replace("left,right,top,bottom", "full") + img_url = img_url.replace("left,top,right,bottom", "full") + img_url = img_url.replace('left', min_left.toString()); img_url = img_url.replace('right', max_right.toString()); img_url = img_url.replace('top', min_top.toString());