From f46481af0c32d6f1398e064d84a4ddb832e0bc3a Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Thu, 24 Oct 2024 06:17:36 +1100 Subject: [PATCH] thrimbletrimmer: Add support for advanced crop options - On load + change of template, set from template defaults - On load, set from video if not null - Show only in template mode - Use when previewing image - Send when submitting --- thrimbletrimmer/edit.html | 25 +++++++ thrimbletrimmer/scripts/edit.js | 77 ++++++++++++++++++++-- thrimbletrimmer/styles/thrimbletrimmer.css | 4 ++ 3 files changed, 102 insertions(+), 4 deletions(-) diff --git a/thrimbletrimmer/edit.html b/thrimbletrimmer/edit.html index 13966fe..66a2b6f 100644 --- a/thrimbletrimmer/edit.html +++ b/thrimbletrimmer/edit.html @@ -252,6 +252,31 @@ id="video-info-thumbnail-time-play" /> +
+
+ Advanced Templating Options + Crop specifies the region of the video frame to capture.
+ Location specifies the region within the template image where the cropped image will be placed.
+ Regions are given as pixel coordinates of the top-left and bottom-right corners.
+ Note that if the regions are different sizes, the image will be stretched.
+ + Crop: + + + to + + +
+ + Location: + + + to + + +
+
+