API Reference
Command
Add-ImageWatermark
Adds a watermark image to another image.
Remarks
Adds a watermark image to another image.
Examples
Watermark a photo
Add-ImageWatermark -FilePath photo.png -OutputPath out.png -WatermarkPath logo.png -Placement BottomRight
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Add-ImageWatermark -FilePath <String> [-FlipMode <Horizontal|Vertical>] [-Opacity <Single>] -OutputPath <String> [-Padding <Single>] [-Placement <TopLeft|TopRight|BottomLeft|BottomRight|Middle>] [-Rotate <Int32>] [-Spacing <Int32>] -WatermarkPath <String> [-WatermarkPercentage <Int32>] [<CommonParameters>]#Parameter set:
PlacementParameters
- FilePath String
- Path to the source image.
- FlipMode FlipMode
- Flip mode for the image.
- Possible values:
Horizontal,Vertical - Opacity Single
- Opacity of the watermark.
- OutputPath String
- Destination path for the watermarked image.
- Padding Single
- Padding around the watermark.
- Placement WatermarkPlacement
- Watermark placement when coordinates are not specified.
- Possible values:
TopLeft,TopRight,BottomLeft,BottomRight,Middle - Rotate Int32
- Rotation angle in degrees.
- Spacing Int32
- Tile watermark across the image with given spacing.
- WatermarkPath String
- Image used as the watermark.
- WatermarkPercentage Int32
- Scale of the watermark relative to the image.
Add-ImageWatermark -FilePath <String> [-FlipMode <Horizontal|Vertical>] [-Opacity <Single>] -OutputPath <String> [-Rotate <Int32>] [-Spacing <Int32>] -WatermarkPath <String> [-WatermarkPercentage <Int32>] [-X <Int32>] [-Y <Int32>] [<CommonParameters>]#Parameter set:
CoordinatesParameters
- FilePath String
- Path to the source image.
- FlipMode FlipMode
- Flip mode for the image.
- Possible values:
Horizontal,Vertical - Opacity Single
- Opacity of the watermark.
- OutputPath String
- Destination path for the watermarked image.
- Rotate Int32
- Rotation angle in degrees.
- Spacing Int32
- Tile watermark across the image with given spacing.
- WatermarkPath String
- Image used as the watermark.
- WatermarkPercentage Int32
- Scale of the watermark relative to the image.
- X Int32
- X coordinate for custom placement.
- Y Int32
- Y coordinate for custom placement.