Project

General

Profile

Feature #20497 » tsref-for-0011177.txt

Administrator Admin, 2009-08-28 12:49

 
Documentation for feature #11177.
To be insterted to Properties-Table in TSref / Functions / imgResource:

----------------------------------------------

Property: noRescale

Data type: boolean

Description:
If set, image will never be rescaled. Only width and height are calculated according to the other properties, so that image is _displayed_ resized, but original files is used.
Example:
file = test.jpg // has 1600 x 1200 pixels)
file.width = 240m
file.height = 240m
file.noRescale = 1
results in
<img src="test.jpg" width="240" height="180" />
// note src="test.jpg" is the _original_ file.
Usage:
For creating PDFs or printing of pages the original file could provide much better quality as a recaled one

Default:


----------------------------------------------


Property: resolution

Data type: int

Description:
If set, image will be rescaled to other resolution than displayed. Default resolution (each pixel in image corresponds to one pixel on screen) is assumed to be 72dpi
Setting is ignored, if resolution < 36
If resolution-setting would require the image to be upscaled, then no upscaling takes place but the original file is beeing delivered (as if noRescale would be set)

Example:
file = test.jpg // has 1600 x 1200 pixels)
file.width = 240m
file.height = 240m
file.resolution = 200
results in
<img src="0742756117.jpg" width="240" height="180" />
// note src="0742756117.jpg" is the rescaled file and has 667x500pixels (!)
Usage:
For creating PDFs or printing of pages more pixels (= higher resolution) are needed for good quality than on WebPages.
For WebPages, the width/height parameters enforce the right size for viewing.



Default:

(5-5/7)