summaryrefslogtreecommitdiff
path: root/templates/fluid/fluid.xml
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2016-09-18 19:34:56 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2016-09-18 19:54:08 +0200
commitaeefd1959aad3b80a0fe02083edbd5ebfb09510b (patch)
tree4da69339f39f55c3a70e7f54a4eafe95ea9fd972 /templates/fluid/fluid.xml
parent6b853ad4312763d50f1e843d4e7168ccd023530a (diff)
downloadcataract-aeefd1959aad3b80a0fe02083edbd5ebfb09510b.tar.xz
Introduce resizing thresholds
This commit brings deeper changes to the image sizes concept. The goal was to allow more flexible input in resizing vs. supplied files mixed mode. Instead of hard <noresize> flags the decision whether to resize or copy an image is now based on threshold. While not 100% universal, it brings more control regarding image size bounds. Also brings a level of tolerance for specific errors (off-by-one exports). Image sizes' rules are a bit simpler, hopefully easier to understand. A lot can be achieved by combination of thresholds.
Diffstat (limited to 'templates/fluid/fluid.xml')
-rw-r--r--templates/fluid/fluid.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/fluid/fluid.xml b/templates/fluid/fluid.xml
index b4e528b..49e8547 100644
--- a/templates/fluid/fluid.xml
+++ b/templates/fluid/fluid.xml
@@ -6,15 +6,15 @@
<landscape w="1423" h="800" />
<portrait w="1000" h="1000" />
<quality value="95" />
- <no_resize />
<fallback size="preview" />
+ <threshold no_resize="25" availability="155" quality="5" />
</size>
<size name="preview" tagname="preview">
<landscape w="1067" h="600" />
<portrait w="800" h="800" />
<quality value="95" />
- <no_resize />
+ <threshold no_resize="10" availability="10" quality="5" />
</size>
<size name="thumbnail" type="thumbnail" style="fixed">
@@ -26,8 +26,8 @@
<landscape w="1897" h="1067" />
<portrait w="1200" h="1200" />
<quality value="95" />
- <no_resize />
<fallback size="original" />
+ <threshold no_resize="20" availability="20" quality="5" />
</size>
</image_sizes>