summaryrefslogtreecommitdiff
path: root/templates/fluid
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2016-09-26 14:56:06 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2016-10-02 17:11:34 +0200
commitce1ae1ff69309ec7f1905e928a9d43eb8ae86dbe (patch)
tree1333e1cf81b034681c4ac6b35665c17ccd984048 /templates/fluid
parentc80c60eb0623268112b5a0c37d80ada0384c3e90 (diff)
downloadcataract-ce1ae1ff69309ec7f1905e928a9d43eb8ae86dbe.tar.xz
jpeg-utils: Add support for custom resize options
This change brings the possibility to tweak resize options using standard ImageMagick `convert` command syntax. Separate options are offered for thumbnails.
Diffstat (limited to 'templates/fluid')
-rw-r--r--templates/fluid/fluid.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/fluid/fluid.xml b/templates/fluid/fluid.xml
index 9bdba19..376d56d 100644
--- a/templates/fluid/fluid.xml
+++ b/templates/fluid/fluid.xml
@@ -31,6 +31,22 @@
</size>
</image_sizes>
+ <resize>
+ <!-- Use this section to tweak resizing methods. For the moment ImageMagick
+ is the only supported method, being used from the beginning of the project,
+ however it offers nearly endless possibilities of image manipulation. -->
+ <ImageMagick>
+ <!-- For ImageMagick method, the option string is automatically prepended
+ with convert method name and input filename and appended with output
+ filename. The option string should however contain ${WIDTH} and ${HEIGHT}
+ arguments defining target dimensions. For the rest of arguments
+ standard convert(1) command syntax is used. -->
+ <!-- In case an option string is empty, internal defaults are used. -->
+ <resize_options>-set option:filter:blur 0.6 -filter Gaussian -thumbnail ${WIDTH}x${HEIGHT}</resize_options>
+ <thumbnail_options>-set option:filter:blur 0.6 -filter Gaussian -thumbnail ${WIDTH}x${HEIGHT}</thumbnail_options>
+ </ImageMagick>
+ </resize>
+
<supplemental_files><![CDATA[
styles.css
fonts.css