![]() ![]() ![]() Original watermark plugin (Versions 3.0.13 and older) Text layers can print values passed in from the querystring if you use the # Ĭ.CurrentImageBuilder.Build(source,dest,new ResizeSettings("watermark=text,img name=John Doe")) Image layers can pre-process the watermark itself using the imageQuery attribute. image is the photo itself, imageArea includes padding added to the image to keep aspect ratio, and canvas is the final dimensions of the file, including any borders, padding, or margins. Valid container names include 'image', 'imageArea', and 'canvas'. The container is specified by relativeTo. Right and Bottom are relative to the right and bottom sides of the container. Percentages are relative to the container width/height. All values can be pixels (default) or percentages. In rare instances where you still need to specify alignment, you can use the align attribute to set it. You can use any combination of Left, Top, Right, Bottom, Width, and Height to get the layout desired. The name attribute defines the ID that will be used from the querystring to enable the watermark.īoth image and text layers have a very flexible positioning system. This is effective when combined with padding or transparent source images. The element allows you to define image layers, text layers, and layer groups.īy default all layers are overlays, but can be rendered as a background layer using drawAs="background". InstallationĮither run Install-Package in the NuGet package manager, or: It is also binary compatible with the old (pre v3.1) plugin, so you can transition slowly. The positioning system is per-layer, permits flexible pixel and percent layout, anchoring, and container selection. The Watermark plugin in v3.1+ is fully XML configurable, and supports named watermark configurations, multiple image and text layers, layer groups, and background (as well as overlay) layers.
0 Comments
Leave a Reply. |