Watermark
This operation is used to apply a watermark (a signature, a trademark, etc.) to source images. The following parameters are used to adjust its settings.
- image - path to watermark image
- halign - horizontal alignment (default - left)
- valign - vertical alignment (default - top)
- offset_x - horizontal offset (default - 0)
- offset_y - vertical offset (default - 0)
- method - blending method (default - alpha_blend)
image
Image parameter specifies the image to be applied to source images. It contains the full path to the needed file and is a required parameter for this operation.
Example:
halign
Halign parameter specifies horizontal alignment of the image applied as watermark. This parameter can have the following values.
- left - the applied image is aligned by left edge.
- right - the applied image is aligned by right edge.
- center - the applied image is aligned by center.
The default value is: left.
Example:
valign
Valign specifies vertical alignment of the image applied as watermark. This parameter can have the following values.
- top - the applied image is aligned by top edge.
- bottom - the applied image is aligned by bottom edge.
- center - the applied image is aligned by center.
The default value is: top.
Example:
offset_x
Offset_xt parameter specifies horizontal offset (in pixels) of the applied image regarding the alignment point specified in horizontal alignment parameter. It can be a whole positive or negative number.
The default value is: 0.
Example:
offset_y
Offset_y parameter specifies vertical offset (in pixels) of the applied image regarding the alignment point specified in vertical alignment parameter. It can be a whole positive or negative number.
The default value is: 0.
Example:
method
Method parameter specifies a method of applying watermark to the source image. This parameter can have the following values.
- alpha_blend - select this method to apply watermark regarding transparency of the source image.
- overdraw - select this method to apply watermark disregarding transparency of the source image.
The default value is: alpha_blend.
Example:
general example
ICPCL.exe -source "C:\Original files" -dest "C:\Converted files" -oper Watermark image:" c:\mark.jpg" halign:center valign:center offset_x:20 offset_y:-10 method:overdraw
tips
-
To execute this command line, make sure that the image specified in path to watermark image parameter is available for reading. This regards all executions including those from other applications or with other user names.