DriveWorks Pro 15: Resize Image [send feedback...]

Resize Image

This Specification Task will resize an image.

You can define a new height and a new width that can be smaller or bigger than the original dimensions of the source file.

If one of the properties Height or Width is set to 0, then DriveWorks will perform a scaling of the image, keeping its original proportions and using the other property value as a target.

Resize Image Properties

Property NameDescription
Constant NameThe name of the constant used to report on the success of the specification task. If it is a success this will be used to store the path of the generated image.
DestinationThe full file name and path of the image file to create, including its extension.
HeightThe new height of the image in pixels.
OverwriteTrue to overwrite an existing image, False to keep the existing image.
SourceThe full file name and path of the source image file to resize, including its extension.
WidthThe new width of the image in pixels.
TitleChanges the Title (not the name) of the task.

Simple Example

Using the image below as the source image:

The image is 600 pixels wide by 450 pixels high.

To resize this image to be a square of 600 by 600 pixels, the task properties will be as follows:

The result will be the image below:

The image has been resized but the aspect ratio has not been maintained.

Simple Example with Aspect Ratio Maintained

To resize this image and keep the original aspect ratio one of the Height or Width property must be set to 0:

Notice the Property Width is 0, and only the Property Height has a value of 300 pixels high.

DriveWorks will automatically rescale the image and keep the original aspect ratio.

The result will be the image below:

Table of Contents