[root]/src/etc/testcases/taskdefs/optional/image
src
(2 files, 0 lines)
Quoting Rob Oxspring :
I was using the image task to create thumbnails and couldn't figure out
how to keep proportions of an image but keep it within a fixed size.
My solution was to change the keepproportions attribute to be a little cleverer.
The keepproportions attribute is no more and has been replaced by the proportions
attribute, which has been added with the following features:
proportions="ignore" - treat the dimensions independently (==keepproportions="false" and is default)
proportions="width" - keep proportions based on the width (==keepproportions="true")
proportions="height" - keep proportions based on the height
proportions="fit" - keep proportions and fit in the supplied dimensions
proportions="cover" - keep proportions and cover the supplied dimensions
Submitted by: Rob Oxspring (roxspring at imapmail dot org)
5 lines of code changed in:
More patches (+ test cases!) from Eric Pugh on the <image> task.
53 lines of code changed in: