Previous Topic

Next Topic

Book Contents

Book Index

Resize

Description:

One of the more powerful import options in II2LN is Resize. With this import option you can reduce or enlarge an image to fit within specified X and Y rectangles. You can for example specify that an image should resize to 200 by 200 pixels. II2LN will automatically find the best fit for your image, without loosing the aspect ratio. In other words, your image will never become stretched or compressed because you didn't set the X and Y correctly.

Note that you can ensure that the Resize import option don't enlarge the image, if it is smaller than the specified width and height you specify. You control this with the SetResizeNoEnlargement import option.

Declaration:

Resize:<X>,<Y>


Parameters:

Param

Description

<X>

The maximum width of the resized image

<Y>

The maximum height of the resized image


Notes:

All image manipulation may reduce the quality of the image. If you for example reduce a large image to a small thumbnail, you might feel that the thumbnail looks "harsh" or "bad". Most modern image processing systems therefore let the user choose which resizing method to use, offering high quality, but slow-methods in one end, and not-so-good quality, but quick-methods in the other end. II2LN has several resize methods, so you can choose quality before speed or vise versa. See more about resize methods here.

Note that you also has the opportunity to set the Dots Per Inch (DPI) for an image. This is controlled with the SetDPI import option.

Note that you can use the "find best fit within specified dimensions"-logic to ensure that images always have equal width or height. This is accomplished by specifying a huge number for the value you don't care about. For example; if you want all thumbnails to have an equal width of 80 pixels, you can use this resize specification:

Resize:80,9999

Since the resize import option will calculate the best fit within the rectangle 80 x 9999, the image will have 80 pixels width and unknown height. Again, the resize operation won't destroy the aspect ration.

Introduced in version:

1.0.0.0

Repeatable

No

See Also

All Import Options

AttachImportFile

AppendIPTC

AttachOriginalFile

AttachPreviewFile

AutoOrientation

Blur

CanvasFormatWithColor

ClearExistingMetadata

ExtractEXIFToField

ExtractIPTCToField

ExtractImageVariablesToField

FavorPhotoshop

Flip

ForceImportFilename

ImpersonateAs

InsertIPTC

LeaveDXLBackup

LoadTIFFFrame

OverlayImage

WriteText

OutputSize

ProcessTimeField

ReplaceEXIF

ReplaceIPTC

ReplaceWithVariable

ResizeMetric

Rotate

SetDPI

SetGhostscriptParameters

SetGhostscriptProcessor

SetLogFilename

SetLogLevel

ResizeMethod

SetResizeNoEnlargement

SetWebGrabBrowserSize

SetWebGrabClipRect

SetWebGrabDelay

SetWebGrabEnableActiveX

SetWebGrabEnableJava

SetWebGrabEnableScript

SetWebGrabTimeout

SetWebGrabZoom

StrictImageVerification

Sharpen

UseImageResourceDatabase

WorkingPath