npImgConvert
This action can convert an image file from one of the supported input format to one of supported output format. Just set a source image path and a target image path. Also you can set a result variable name to store the result of the action, in this case True or False.
If the action result is False you can read the [LastError] NeoBook variable, wich contain information about the action error. The image formats are retrieved based on image files extension. Here is the list of supported image formats in this action:
Supported input formats
- BMP (Windows Bitmap Image)
- JPG (Joint Photographic Experts Group Image)
- PNG (Portable Network Graphics)
- MNG (Multiple Network Graphics)
- JNG (JPEG Network Graphics)
- GIF (Graphics Interchange Format)
- DDS (DirectDraw Surface)
- TGA (Truevision Targa Image)
- JP2 (JPEG 2000 Image)
- PSD (Photoshop Image)
- PCX (ZSoft Paintbrush Image)
- BSI (Bethesda Image)
- CIF (Daggerfall MultiImage)
- IMG (Daggerfall Image)
- PBM (Portable Bit Map)
- PGM (Portable Gray Map)
- PPM (Portable Pixel Map)
- PAM (Portable Arbitrary Map)
- PFM (Portable Float Map)
- TIF (Tagged Image File)
- XPM (X Pixmap Image)
- DAGTEXTURE (Daggerfall Texture)
- DAGSKY (Daggerfall Sky Images)
Supported output formats
- BMP (Windows Bitmap Image)
- JPG (Joint Photographic Experts Group Image)
- PNG (Portable Network Graphics)
- MNG (Multiple Network Graphics)
- JNG (JPEG Network Graphics)
- GIF (Graphics Interchange Format)
- DDS (DirectDraw Surface)
- TGA (Truevision Targa Image)
- JP2 (JPEG 2000 Image)
- PSD (Photoshop Image)
- CIF (Daggerfall MultiImage)
- IMG (Daggerfall Image)
- PGM (Portable Gray Map)
- PPM (Portable Pixel Map)
- PAM (Portable Arbitrary Map)
- PFM (Portable Float Map)
- TIF (Tagged Image File)
- XPM (X Pixmap Image)
↑↑
This action provide you the appropiate dialog mask to be used with the native NeoBook open file dialog. In the result variable name the plugin store all supported image types to be used as input with other actions, like npImgConvert.
↑↑
npImgOutputMask
This action provide you the appropiate dialog mask to be used with the native NeoBook save file dialog. In the result variable name the plugin store all supported image types to be used as output with other actions, like npImgConvert.
↑↑
npImgScale
With this action you can resize an image using width and height percentages of the source image. In other words, you can scale an image by width and height percentages. The output image path can be the same that source image path. In this case the action overwrite the source image. Note that you can also save the source image (after scaling) in other format, like with npImgConvert action.
If everything is OK the result variable contain the "True" value, or "False" in other case. In this last case the [LastError] variable contain the error information.
↑↑
npImgGetSize
With this action you can find the width and height of a image in pixels. Just provide an image path and the action store in the width and height variables the size of the image.
If everything is OK the result variable contain the "True" value, or "False" in other case. In this last case the [LastError] variable contain the error information.
↑↑
npImgSetSize
With this action you can resize an image. In other words, you can set the width and height (in pixels) of an image. The output image path can be the same that source image path. In this case the action overwrite the source image. Note that you can also save the source image (after resizing) in other format, like with npImgConvert action.
Note this action allow you to calculate the image width or height in order to maintain the image aspect ratio. Just set the image width to "-1" if you want to calculate the width based on the height value. And if you want to calculate the image height, set this to "-1" and the plugin calculate the appropiate height value based on the width value.
If everything is OK the result variable contain the "True" value, or "False" in other case. In this last case the [LastError] variable contain the error information.
↑↑
npImgFiltersList
This action allow you to present to the user a list of available image filters supported by the plugin, that you can use later with the npImgApplyFilters. The Filters variable contain an Array with all available image filters names, and the Filters count variable contain the number of filters and items in the Filters variable.
↑↑
npImgApplyFilters
With this action you can apply one or more of the available image filters. All supported input and output image formats by the plugin can be used in this action. The filters names must be comma separated, and are apply in the same order. So, if you pass this filters to the action "Average, Blur, Average", first the "Average" filter is applied, then "Blur" filter is applied, and finally "Average" filter is apply again.
The result variable store "True" if everything is OK, or "False" in other case. In this last case you can find more information about the error in the [LastError] variable.
Currently available image filters:
- Average
- Average More
- Blur
- Blur More
- Gaussian Blur
- Low Pass
- Smooth
- Smooth Circle
- Smooth Cone
- Smooth Pyramidal
- Sharpen
- Sharpen More
- Unsharp Mask
- High Pass
- Laplacian
- Edge
- Prewitt North South
- Prewitt South North
- Prewitt East West
- Prewitt West East
- Prewitt Edge
- Sobel North South
- Sobel South North
- Sobel East West
- Sobel West East
- Sobel Edge
- Line Mask Vertical
- Line Mask Horizontal
- Line Mask
- Emboss
- Emboss Color
- Mosaic
- Minimum
- Maximum
- Max Min
- Min Max
- Median
- Degrain Bright
- Degrain Dark
- Degrain
↑↑
npImgGetJpgIptc
This action retrieve the available (and supported by the plugin) JPG IPTC data from a JPG file. When you call to this action, lots of NeoBook variables can be set with the available IPTC data. The action result variable store "True" if everything is OK, or "False" if not. In this last case the [LastError] variable can contain information about the possible error.
Below you can see all supported and possibly IPTC data variables and possible value types. For information about every IPTC variable data I remite you to the IPTC specification.
- Destination A string representation of the value
- ServiceIdentifier A string representation of the value
- EnvelopeNumberString A string representation of the value
- ProductID A string representation of the value
- UNOCode A string representation of the value
- ObjectTypeRef A string representation of the value
- ObjectAttributeRef A string representation of the value
- ObjectName A string representation of the value
- EditStatus A string representation of the value
- CategoryCode A string representation of the value
- FixtureIdentifier A string representation of the value
- SpecialInstructions A string representation of the value
- OriginatingProgram A string representation of the value
- ProgramVersion A string representation of the value
- ObjectCycleCode A string representation of the value
- City A string representation of the value
- SubLocation A string representation of the value
- ProvinceOrState A string representation of the value
- CountryCode A string representation of the value
- CountryName A string representation of the value
- OriginalTransmissionRef A string representation of the value
- Headline A string representation of the value
- Credit A string representation of the value
- Source A string representation of the value
- CopyrightNotice A string representation of the value
- CaptionOrAbstract A string representation of the value
- ImageTypeCode A string representation of the value
- LanguageIdentifier A string representation of the value
- AudioTypeCode A string representation of the value
- ModelVersion A string representation of the value
- FileFormat A string representation of the value
- FileFormatVersion A string representation of the value
- EnvelopePriority One of this values: ipLowest, ipVeryLow, ipLow, ipNormal, ipNormalHigh, ipHigh, ipVeryHigh, ipHighest, ipUserDefined, ipReserved
- DateSent A datetime string representation of the value
- ARMIdentifier
- ARMVersion
- Urgency One of this values: ipLowest, ipVeryLow, ipLow, ipNormal, ipNormalHigh, ipHigh, ipVeryHigh, ipHighest, ipUserDefined, ipReserved
- SubjectRefs A NeoBook Array of strings
- SubjectRefsCount The SubjectRefs items count
- SupplementaryCategories A NeoBook Array of strings
- SupplementaryCategoriesCount The SupplementaryCategories items count
- Keywords A NeoBook Array of strings
- KeywordsCount The Keywords items count
- ContentLocationCodes A NeoBook Array of strings
- ContentLocationCodesCount The ContentLocationCodes items count
- ContentLocationNames A NeoBook Array of strings
- ContentLocationNamesCount The ContentLocationNames items count
- ReleaseDate A datetime string representation of the value
- ExpirationDate A datetime string representation of the value
- ActionAdvised One of this values: iaObjectKill, iaObjectReplace, iaObjectAppend, iaObjectReference
- DateCreated A datetime string representation of the value
- DigitalCreationDate A datetime string representation of the value
- Contacts A NeoBook Array of strings
- ContactsCount The Contacts items count
- WritersOrEditors A NeoBook Array of strings
- WritersOrEditorsCount The WritersOrEditors items count
- ImageOrientation One of this values: ioLandscape, ioPortrait
- Bylines A NeoBook Array of strings
- BylinesCount The Bylines items count
- BylineTitles A NeoBook Array of strings
- BylineTitlesCount The BylineTitles items count
I recommend you to use the "prefix" variable feature, so you can access to the variables in this form: [Prefix.Destination] and avoid with other possible publication variables collisions.
↑↑
npImgSetJpgIptc
This action set some of the supported JPG IPTC information in a JPG image file. You not need to set all supported variables, only what you want. The others are ignored. You must to procced in this way, just like when set another normal NeoBook variables:
.Set the variables that you want to save
SetVar "Prefix.Destination" "My destination data"
SetVar "Prefix.ServiceIdentifier" "My service identifier data"
.And then save the information in the JPG file
npImgSetJpgIptc "My.jpg" "Prefix" "[Result]"
This action result variable store "True" if everything is OK, or "False" if not. See [LastError] variable for details about possible errors.
Below you can see the supported IPTC information variables and possible values that can be set before call to this action in order to be saved in the JPG file:
- Destination A string value
- ServiceIdentifier A string value
- EnvelopeNumberString A string value
- ProductID A string value
- UNOCode A string value
- ObjectTypeRef A string value
- ObjectAttributeRef A string value
- ObjectName A string value
- EditStatus A string value
- CategoryCode A string value
- FixtureIdentifier A string value
- SpecialInstructions A string value
- OriginatingProgram A string value
- ProgramVersion A string value
- ObjectCycleCode A string value
- City A string value
- SubLocation A string value
- ProvinceOrState A string value
- CountryCode A string value
- CountryName A string value
- OriginalTransmissionRef A string value
- Headline A string value
- Credit A string value
- Source A string value
- CopyrightNotice A string value
- CaptionOrAbstract A string value
- ImageTypeCode A string value
- LanguageIdentifier A string value
- AudioTypeCode A string value
- EnvelopePriority One of this values: ipLowest, ipVeryLow, ipLow, ipNormal, ipNormalHigh, ipHigh, ipVeryHigh, ipHighest, ipUserDefined, ipReserved
- DateSent A string datetime value, like "[DateShort] [Time]"
- Urgency One of this values: ipLowest, ipVeryLow, ipLow, ipNormal, ipNormalHigh, ipHigh, ipVeryHigh, ipHighest, ipUserDefined, ipReserved
- SubjectRefs One ir more string values separated by "|" (pipe) character
- Keywords One ir more string values separated by "|" (pipe) character
- SupplementaryCategories One ir more string values separated by "|" (pipe) character
- ContentLocationCodes One ir more string values separated by "|" (pipe) character
- ContentLocationNames One ir more string values separated by "|" (pipe) character
- ReleaseDate A string datetime value, like "[DateShort] [Time]"
- ExpirationDate A string datetime value, like "[DateShort] [Time]"
- ActionAdvised One of this values: iaObjectKill, iaObjectReplace, iaObjectAppend, iaObjectReference
- DigitalCreationDate A string datetime value, like "[DateShort] [Time]"
- Contacts One ir more string values separated by "|" (pipe) character
- WritersOrEditors One ir more string values separated by "|" (pipe) character
- ImageOrientation One of this values: ioLandscape, ioPortrait, ioSquare
- Bylines One ir more string values separated by "|" (pipe) character
- BylineTitles One ir more string values separated by "|" (pipe) character
Note: As you can see is possible to retrieve more IPTC variables that than can be set: this is because some variables are "read only" and cannot be set, only retrived if exists.
↑↑
npImgStripJpgIptc
This action strip all JPG IPTC information stored in a JPG image file. Every supported tag is deleted from the file, of course if previosly exists. This action result variable store "True" if everything is OK, or "False" if not. See [LastError] variable for details about possible errors.
↑↑
npImgClearJpgIptc
This action clear all JPG IPTC NeoBook related variables. This action not clear the information from a JPG file, just clear the variables (prefixed or not) that you can know by the other plugin JPG IPTC actions.
↑↑
npImgGetJpgExif
This action retrieve the available (and supported by the plugin) JPG EXIF data from a JPG file. When you call to this action, lots of NeoBook variables can be set with the available EXIF data. The action result variable store "True" if everything is OK, or "False" if not. In this last case the [LastError] variable can contain information about the possible error.
Below you can see all supported and possibly IPTC data variables and possible value types. For information about every EXIF variable data I remite you to the EXIF specification.
- CameraMake A string representation of the value
- Copyright A string representation of the value
- ImageDescription A string representation of the value
- Software A string representation of the value
- Author A string representation of the value
- Comments A string representation of the value
- Keywords A string representation of the value
- Subject A string representation of the value
- Title A string representation of the value
- ImageUniqueID A string representation of the value
- RelatedSoundFile A string representation of the value
- SpectralSensitivity A string representation of the value
- SubsecTime A string representation of the value
- SubsecTimeOriginal A string representation of the value
- SubsecTimeDigitized A string representation of the value
- InteropTypeName A string representation of the value
- GPSSatellites A string representation of the value
- GPSMapDatum A string representation of the value
- GPSDateStamp A string representation of the value
- DateTime A datetime string representation of the value
- Orientation One of this values: toUndefined, toTopLeft, toTopRight, toBottomRight, toBottomLeft, toLeftTop{i.e., rotated}, toRightTop, toRightBottom, toLeftBottom
- Resolution.X A datetime string representation of the value
- Resolution.Y A datetime string representation of the value
- UserRating One of this values: urUndefined, urOneStar, urTwoStars, urThreeStars, urFourStars, urFiveStars
- ShutterSpeedInMSecs A string representation of the value
- ApertureValue A string representation of the value
- BrightnessValue A string representation of the value
- ColorSpace One of this values: csRGB, csAdobeRGB, csUncalibrated
- DateTimeOriginal A datetime string representation of the value
- DateTimeDigitized A datetime string representation of the value
- Contrast One of this values: cnNormal, cnSoft, cnHard
- CompressedBitsPerPixel A string representation of the value
- DigitalZoomRatio A string representation of the value
- ExifImageWidth A string representation of the value
- ExifImageHeight A string representation of the value
- ExposureBiasValue A string representation of the value
- ExposureIndex A string representation of the value
- ExposureTime A string representation of the value
- ExposureMode One of this values: exAuto, exManual, exAutoBracket
- ExposureProgram One of this values: eeUndefined, eeManual, eeNormal, eeAperturePriority, eeShutterPriority, eeCreative, eeAction, eePortrait, eeLandscape
- Flash.Fired A string representation of a boolean value
- Flash.Mode One of this values: efUnknown, efCompulsoryFire, efCompulsorySuppression, efAuto
- Flash.Present A string representation of a boolean value
- Flash.RedEyeReduction A string representation of a boolean value
- Flash.StrobeLight One of this values: esNoDetectionFunction, esUndetected, esDetected
- Flash.StrobeEnergy A string representation of the value
- FlashPixVersion A string representation of the value
- FocalLength A string representation of the value
- FocalLengthIn35mmFilm A string representation of the value
- FocalPlaneResolution.X A string representation of the value
- FocalPlaneResolution.Y A string representation of the value
- GainControl One of this values: egNone, egLowGainUp, egHighGainUp, egLowGainDown, egHighGainDown
- ISOSpeedRatings A string representation of the value
- LightSource One of this values: elUnknown, elDaylight, elFluorescent, elTungsten, elFlash, elFineWeather, elCloudyWeather, elShade, elDaylightFluorescent, elDayWhiteFluorescent, elCoolWhiteFluorescent, elWhiteFluorescent, elStandardLightA, elStandardLightB, elStandardLightC, elD55, elD65, elD75, elD50, elISOStudioTungsten, elOther
- MaxApertureValue A string representation of the value
- MeteringMode One of this values: emUnknown, emAverage, emCenterWeightedAverage, emSpot, emMultiSpot, emPattern, emPartial
- OffsetSchema A string representation of the value
- Rendering One of this values: erNormal, erCustom
- Saturation One of this values: euNormal, euLow, euHigh
- SceneCaptureType One of this values: ecStandard, ecLandscape, ecPortrait, ecNightScene
- SceneType One of this values: esUnknown, esDirectlyPhotographed
- SensingMethod One of this values: esMonochrome, esOneChip, esTwoChip, esThreeChip, esColorSequential, esTrilinear, esColorSequentialLinear
- Sharpness One of this values: ehNormal, ehSoft, ehHard
- ShutterSpeedValue A string representation of the value
- SubjectDistance A string representation of the value
- SubjectDistanceRange One of this values: edUnknown, edMacro, edClose, edDistant
- SubjectLocation.X A string representation of the value
- SubjectLocation.Y A string representation of the value
- WhiteBalanceMode One of this values: ewAuto, ewManual
- InteropVersion A string representation of the value
- GPSVersion A string representation of the value
- GPSLatitude A string representation of the value
- GPSLongitude A string representation of the value
- GPSAltitudeRef One of this values: alAboveSeaLevel, alBelowSeaLevel
- GPSAltitude A string representation of the value
- GPSStatus One of this values: stMissingOrInvalid, stMeasurementActive, stMeasurementVoid
- GPSMeasureMode One of this values: mmUnknown, mm2D, mm3D
- GPSDOP A string representation of the value
- GPSSpeedRef One of this values: srMissingOrInvalid, srKilometresPerHour, srMilesPerHour, srKnots
- GPSSpeed A string representation of the value
- GPSTrackRef One of this values: drMissingOrInvalid, drTrueNorth, drMagneticNorth
- GPSTrack A string representation of the value
- GPSImgDirectionRef One of this values: drMissingOrInvalid, drTrueNorth, drMagneticNorth
- GPSImgDirection A string representation of the value
- GPSDestLatitude A string representation of the value
- GPSDestLongitude A string representation of the value
- GPSDestBearingRef One of this values: drMissingOrInvalid, drTrueNorth, drMagneticNorth
- GPSDestBearing A string representation of the value
- GPSDestDistanceRef One of this values: dsMissingOrInvalid, dsKilometres, dsMiles, dsKnots
- GPSDestDistance A string representation of the value
- GPSDifferential One of this values: dfWithoutCorrection, dfCorrectionApplied
- GPSDateTimeUTC A datetime string representation of the value
- GPSTimeStampHour A string representation of the value
- GPSTimeStampMinute A string representation of the value
- GPSTimeStampSecond A string representation of the value
- ThumbnailOrientation One of this values: toUndefined, toTopLeft, toTopRight, toBottomRight, toBottomLeft, toLeftTop, toRightTop, toRightBottom, toLeftBottom
- ThumbnailResolution.X A string representation of the value
- ThumbnailResolution.Y A string representation of the value
I recommend you to use the "prefix" variable feature, so you can access to the variables in this form: [Prefix.ImageDescription] and avoid with other possible publication variables collisions.
↑↑
npImgSetJpgExif
This action set some of the supported JPG EXIF information in a JPG image file. You not need to set all supported variables, only what you want. The others are ignored. You must to procced in this way, just like when set another normal NeoBook variables:
.Set the variables that you want to save
SetVar "Prefix.Author" "My name here"
SetVar "Prefix.ImageDescription" "A wonderfull image of my bicycle"
.And then save the information in the JPG file
npImgSetJpgExif "My.jpg" "Prefix" "[Result]"
This action result variable store "True" if everything is OK, or "False" if not. See [LastError] variable for details about possible errors.
Below you can see the supported EXIF information variables and possible values that can be set before call to this action in order to be saved in the JPG file:
- CameraMake A string value
- CameraModel A string value
- Copyright A string value
- ImageDescription A string value
- Software A string value
- Author A string value
- Comments A string value
- Keywords A string value
- Subject A string value
- Title A string value
- ImageUniqueID A string value
- RelatedSoundFile A string value
- SpectralSensitivity A string value
- SubsecTime A string value
- SubsecTimeOriginal A string value
- SubsecTimeDigitized A string value
- InteropTypeName A string value
- GPSSatellites A string value
- GPSMapDatum A string value
- GPSDateStamp A string value
- DateTime A string datetime value, like "[DateShort] [Time]"
- Orientation One of this values: toUndefined, toTopLeft, toTopRight, toBottomRight, toBottomLeft, toLeftTop, toRightTop, toRightBottom, toLeftBottom
- UserRating One of this values: urUndefined, urOneStar, urTwoStars, urThreeStars, urFourStars, urFiveStars
- ColorSpace
- DateTimeOriginal A string datetime value, like "[DateShort] [Time]"
- DateTimeDigitized A string datetime value, like "[DateShort] [Time]"
- Contrast One of this values: cnNormal, cnSoft, cnHard
- ExposureMode One of this values: exAuto, exManual, exAutoBracket
- ExposureProgram One of this values: eeUndefined, eeManual, eeNormal, eeAperturePriority, eeShutterPriority, eeCreative, eeAction, eePortrait, eeLandscape
- Flash.Fired A NeoBook boolean true like "True" or "Checked", otherwise "False"
- Flash.Mode One of this values: efUnknown, efCompulsoryFire, efCompulsorySuppression, efAuto
- Flash.Present A NeoBook boolean true like "True" or "Checked", otherwise "False"
- Flash.RedEyeReduction A NeoBook boolean true like "True" or "Checked", otherwise "False"
- Flash.StrobeLight One of this values: esNoDetectionFunction, esUndetected, esDetected
- GainControl One of this values: egNone, egLowGainUp, egHighGainUp, egLowGainDown, egHighGainDown
- LightSource One of this values: elUnknown, elDaylight, elFluorescent, elTungsten, elFlash, elFineWeather, elCloudyWeather, elShade, elDaylightFluorescent, elDayWhiteFluorescent, elCoolWhiteFluorescent, elWhiteFluorescent, elStandardLightA, elStandardLightB, elStandardLightC, elD55, elD65, elD75, elD50, elISOStudioTungsten, elOther
- MeteringMode One of this values: emUnknown, emAverage, emCenterWeightedAverage,
emSpot, emMultiSpot, emPattern, emPartial
- Rendering One of this values: erNormal, erCustom
- Saturation One of this values: euNormal, euLow, euHigh
- SceneCaptureType One of this values: ecStandard, ecLandscape, ecPortrait, ecNightScene
- SceneType One of this values: esUnknown, esDirectlyPhotographed
- SubjectDistanceRange One of this values: edUnknown, edMacro, edClose, edDistant
- WhiteBalanceMode One of this values: ewAuto, ewManual
- GPSAltitudeRef One of this values: alAboveSeaLevel, alBelowSeaLevel
- GPSStatus One of this values: stMissingOrInvalid, stMeasurementActive, stMeasurementVoid
- GPSMeasureMode One of this values: mmUnknown, mm2D, mm3D
- GPSSpeedRef One of this values: srMissingOrInvalid, srKilometresPerHour, srMilesPerHour, srKnots
- GPSTrackRef One of this values: drMissingOrInvalid, drTrueNorth, drMagneticNorth
- GPSImgDirectionRef One of this values: drMissingOrInvalid, drTrueNorth, drMagneticNorth
- GPSDestBearingRef One of this values: drMissingOrInvalid, drTrueNorth, drMagneticNorth
- GPSDestDistanceRef One of this values: dsMissingOrInvalid, dsKilometres, dsMiles, dsKnots
- GPSDateTimeUTC A string datetime value, like "[DateShort] [Time]"
Note: As you can see is possible to retrieve more EXIF variables that than can be set: this is because some variables are "read only" and cannot be set, only retrived if exists.
↑↑
npImgStripJpgExif
This action strip all JPG EXIF information stored in a JPG image file. Every supported tag is deleted from the file, of course if previosly exists. This action result variable store "True" if everything is OK, or "False" if not. See [LastError] variable for details about possible errors.
↑↑
npImgClearJpgExif
This action clear all JPG EXIF NeoBook related variables. This action not clear the information from a JPG file, just clear the variables (prefixed or not) that you can know by the other plugin JPG EXIF actions.
↑↑
npImgGetJpgExifThumbnail
Get the thumbnail (if exists) of image of a JPG file. This action store the thumbnail image in the specified path. This action result variable store "True" if everything is OK, or "False" if not. See [LastError] variable for details about possible errors. See also npImgJpgExifHasThumbnail.
↑↑
npImgSetJpgExifThumbnail
Set a JPG image file as the thumbnail of another JPG file. This action result variable store "True" if everything is OK, or "False" if not. See [LastError] variable for details about possible errors.
↑↑
npImgJpgExifHasThumbnail
This action find if a JPG file contain a thumbnail into their EXIF data. The result variable store "True" if a thumbnail exists, or "False" if not. See [LastError] variable for details about possible errors too.
↑↑
npImgCrop
This action can crop the specified input image at the specified x, y, width and height pixels and then save the result to the specified image output. This action support all the input and output images formats supported by the plugin. The result variable return "True" if everything is OK, or "False" when not. See [LastError] variable in this last case for details.
↑↑
npImgFlip
This action flip the image specified for image input and then save the result to the specified image output. This action support all the input and output images formats supported by the plugin. The result variable return "True" if everything is OK, or "False" when not. See [LastError] variable in this last case for details.
↑↑
npImgRotate
This action can rotate the specified input image with the specified angle, and then save the result to the specified image output. The result variable return "True" if everything is OK, or "False" when not. See [LastError] variable in this last case for details.
↑↑
npImgWatermark
With this action you can copy an image into another, and, while alpha blend is supported, do it an image with a watermark. All supported input and output image formats by the plugin can be used in this action. You can load as target image (for example) a BMP image, as watermark (for example) a PNG image, and finally save into the format that you want.
You can specify the position of the watermark using X and Y variable values. If you want to calculate the place of the watemark also you can get aid using the npImgGetSize, but take a look at the npImgWatermarkEx action. The result variable return "True" if everything is OK, or "False" when not. See [LastError] variable in this last case for details.
↑↑
npImgWatermarkEx
This action is similar to npImgWatermark (see for details) but with one difference: allow you to choose one of the availables watermark image position, instead of set the target image relative X and Y coordinates. The result variable return "True" if everything is OK, or "False" when not. See [LastError] variable in this last case for details.
The watermark image position can be one of the following values: wpTopLeft, wpTopCenter, wpTopRight, wpRightCenter, wpBottomRight, wpBottomCenter, wpBottomLeft, wpLeftCenter, wpAllCentered.
↑↑
[npImg.JpgCompressionLevel]
This variable can be set in order to define the JPG compression quality, ranges from 1 (ugly/small) to 100 (nice/large). The defalt value is 90. This variable take effect when you use any action which deal with images like the npImgConvert action, so, it's an optional variable which can/must be set before use any of the plugin actions which deal with images.
↑↑
[npImg.PngCompressionLevel]
This variable can be set in order to define the PNG compression quality, ranges from 0 (no compression) to 9 (best compression). The default value is 5. This variable take effect when you use any action which deal with images like the npImgConvert action, so, it's an optional variable which can/must be set before use any of the plugin actions which deal with images.
↑↑
Action errors subroutine
All the NeoPlugins deal with errors in the same way that NeoBook does: when the plugin found an action error the [LastError] variable store information about the error, so you can take care about this variable when execute an action.
But all the NeoPlugins also incorporate an advanced way to deal with possible action errors. You can define a subroutine named OnNeoPluginActionError in order to be executed when some action error are found and you can use this variables inside:
- [LastError] The last action error message.
- [PluginName] Store the plugin name which cause the error.
Note that this error handling subroutine are shared for all the NeoPlugins, so you no need to specify a subroutine for every plugin you use in your publication because the same subroutine are recognized and automagically used by every NeoPlugin. Below you can view a sample of this subroutine code:
:OnNeoPluginActionError
AlertBox "NeoPlugin Error" "Error [LastError] in plugin: [PluginName]"
Return
Also note that the use of this NeoPlugins error handling subroutine is completelly optional. You can continue using the [LastError] variable as usual and even use the both methods at the same time.
↑↑