KeepDimensionRatio

 

Command Line Example

 

imagecom *.jpg templatefile=downsize.ini keepdimensionratio=true

imagecom *.tif resizemethod=downsizebypixel width=400 keepdimensionratio=false

 

The KeepDimensionRatio switch determines of an image dimension ratio would be maintain. This will ensure that the width/height ratio is maintain during image resizing.

 

If the KeepDimensionRatio switch is not included, the image would be resize based on the width and height setting.

 

For example, if an image has a dimension width 400 x height 300 and the resizemethod is set to downsizebypixel with a width=200 and height=400.

 

With Keepdimensionratio=true , the image would be resized to :-

 

Width = 200  Height= 150

 

With Keepdimensionratio=false selected, the image would be resized to :-

 

Width = 200 Height = 400

 

Note : By default, the keepdimensionratio option is enabled. This will also be ignored if the resizemethod is set as resizebypixel.