Previous Topic

Next Topic

Book Contents

Book Index

AttachPreviewFile

Description:

This import option enables you to create an preview image of the currently processed image. This means that you can have a separate attachment in your Notes document, which is optionally resized.

Declaration:

AttachPreviewFile:<file name>, <field name>, [<X>, <Y>, <Resize Method>]


Parameters:

Param

Description

<file name>

The forced file name of the preview image. Note that this is the file name only, excluding the file extension. For example you will specify "Preview", not "Preview.jpg". The file extension is determined from the imported file name. The Notes field PreviewFilename will contain the real file name.

<field name>

The Notes rich text field name to attach the preview image to

<X> and <Y>

The desired X and Y of the preview image. If not specified, the preview image will have the size width and height as the imported image.

<Resize method>

You can optionally specify any of the available resize methods. By default the resize method is set to 3.


Notes:

Sometimes you need to create a preview of an image, maybe before the image is finally processed in your application. This can for example be if your application allows for image manipulation before image processing, or if you just want to have a quick peek at the image before importing it. In such cases you want to keep the original image as intact as possible, but the original image may be too large to be used as a preview in your application (think about a full sized digital camera image, at full size it's not very "preview like"!).

II2LN offers two methods of keeping the original image intact, but show a resized preview. The OutputSize import option will just scale the Notes Embedded Image (thus the image in the document is full size, it's just the visible image that is resized), while this import option, AttachPreviewFile, will attach a resized copy of the image.

Note that II2LN will clear any existing content in the specified field before attaching the file.

This import option will automatically create a field with the name PreviewFilename in the Notes document, containing the filename of the attachment.

Introduced in version:

1.2.1.0

Repeatable

No

See Also

All Import Options

AttachImportFile

AppendIPTC

AttachOriginalFile

AutoOrientation

Blur

CanvasFormatWithColor

ClearExistingMetadata

ExtractEXIFToField

ExtractIPTCToField

ExtractImageVariablesToField

FavorPhotoshop

Flip

ForceImportFilename

ImpersonateAs

InsertIPTC

LeaveDXLBackup

LoadTIFFFrame

OverlayImage

WriteText

OutputSize

ProcessTimeField

ReplaceEXIF

ReplaceIPTC

ReplaceWithVariable

Resize

ResizeMetric

Rotate

SetDPI

SetGhostscriptParameters

SetGhostscriptProcessor

SetLogFilename

SetLogLevel

ResizeMethod

SetResizeNoEnlargement

SetWebGrabBrowserSize

SetWebGrabClipRect

SetWebGrabDelay

SetWebGrabEnableActiveX

SetWebGrabEnableJava

SetWebGrabEnableScript

SetWebGrabTimeout

SetWebGrabZoom

StrictImageVerification

Sharpen

UseImageResourceDatabase

WorkingPath