From 69d1615d7dc7500039dbde951fa6cbb920eb99b8 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 9 Oct 2010 21:20:13 +0200 Subject: Add support for squared thumbnails Disabled by default, only very simple center crop implemented. The SQUARED_SIMPLE_SHAVE_AMOUNT constant may be slightly adjusted according to future experience. It's a really dumb algorithm which may not be suitable for every picture. Looking for a fast and smart algorithm to determine image weight center and radius, i.e. focus on object of interest. The OpenCV's face recognition features are worth to test and consider, though I fear the speed issues. --- templates/template-album.tmpl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'templates/template-album.tmpl') diff --git a/templates/template-album.tmpl b/templates/template-album.tmpl index c018057..aaff9ef 100644 --- a/templates/template-album.tmpl +++ b/templates/template-album.tmpl @@ -40,7 +40,7 @@ $(IMG_TITLE) - +
@@ -48,8 +48,16 @@ $(IMG_TITLE) -
+ + +
+ + $(IMG_TITLE) + + +
+
@@ -75,4 +83,3 @@ - -- cgit v1.2.3