- Upload Suite Overview
- What's New?
- Choosing Upload Technology
- Evaluating Upload Suite
- Upload Suite Editions
- System Requirements
- Installation and Deployment Notes
- ActiveX/Java Uploader
- HTML5/Flash Uploader
- Before You Started with HTML5/Flash Uploader
- HTML5/Flash Uploader Architecture
- HTML5/Flash Uploader User Interface
- Getting Started
- Using HTML5/Flash Uploader
- Troubleshooting
- Reference
- HTML5/Flash Uploader ASP.NET Reference
- Aurigma.ImageUploaderFlash Namespace
- AddFilesProgressDialog Class HTML5/Flash Uploader ASP.NET
- AllFilesUploadedEventArgs Class HTML5/Flash Uploader ASP.NET
- BaseClientControl Class HTML5/Flash Uploader ASP.NET
- BaseClientEvent(T) Class HTML5/Flash Uploader ASP.NET
- BaseControl Class HTML5/Flash Uploader ASP.NET
- BaseExtender Class HTML5/Flash Uploader ASP.NET
- BaseUploadControl Class HTML5/Flash Uploader ASP.NET
- BaseUploaderExtender Class HTML5/Flash Uploader ASP.NET
- ClientEvent Class HTML5/Flash Uploader ASP.NET
- ClientEventCollection Class HTML5/Flash Uploader ASP.NET
- ClientEventNames Enumeration HTML5/Flash Uploader ASP.NET
- CommonDialog Class HTML5/Flash Uploader ASP.NET
- CompletionCodeBlock Delegate ActiveX/Java Uploader ASP.NET
- ConvertedFile Class HTML5/Flash Uploader ASP.NET
- ConvertedFileCollection Class HTML5/Flash Uploader ASP.NET
- Converter Class HTML5/Flash Uploader ASP.NET
- Converter Members HTML5/Flash Uploader ASP.NET
- Converter Constructor HTML5/Flash Uploader ASP.NET
- Converter Methods HTML5/Flash Uploader ASP.NET
- Converter Properties HTML5/Flash Uploader ASP.NET
- AutoReduceDimensions Property HTML5/Flash Uploader ASP.NET
- Hash Property HTML5/Flash Uploader ASP.NET
- Mode Property HTML5/Flash Uploader ASP.NET
- ThumbnailApplyCrop Property HTML5/Flash Uploader ASP.NET
- ThumbnailApplyDrawTool Property HTML5/Flash Uploader ASP.NET
- ThumbnailBgColor Property HTML5/Flash Uploader ASP.NET
- ThumbnailCompressOversizedOnly Property HTML5/Flash Uploader ASP.NET
- ThumbnailCopyColorProfile Property HTML5/Flash Uploader ASP.NET
- ThumbnailCopyExif Property HTML5/Flash Uploader ASP.NET
- ThumbnailCopyIptc Property HTML5/Flash Uploader ASP.NET
- ThumbnailFitMode Property HTML5/Flash Uploader ASP.NET
- ThumbnailHeight Property HTML5/Flash Uploader ASP.NET
- ThumbnailJpegQuality Property HTML5/Flash Uploader ASP.NET
- ThumbnailResizeCmyk Property HTML5/Flash Uploader ASP.NET
- ThumbnailResizeFailureDetector Property HTML5/Flash Uploader ASP.NET
- ThumbnailResizeQuality Property HTML5/Flash Uploader ASP.NET
- ThumbnailResolution Property HTML5/Flash Uploader ASP.NET
- ThumbnailSizeLimit Property HTML5/Flash Uploader ASP.NET
- ThumbnailType Property HTML5/Flash Uploader ASP.NET
- ThumbnailUseExifPreview Property HTML5/Flash Uploader ASP.NET
- ThumbnailWatermark Property HTML5/Flash Uploader ASP.NET
- ThumbnailWidth Property HTML5/Flash Uploader ASP.NET
- ConverterCollection Class HTML5/Flash Uploader ASP.NET
- DebugScriptMode Enumeration HTML5/Flash Uploader ASP.NET
- DescriptionEditor Class HTML5/Flash Uploader ASP.NET
- DrawTool Class HTML5/Flash Uploader ASP.NET
- FileUploadedEventArgs Class HTML5/Flash Uploader ASP.NET
- FlashControl Class HTML5/Flash Uploader ASP.NET
- FolderProcessingMode Enumeration HTML5/Flash Uploader ASP.NET
- ImageEditor Class HTML5/Flash Uploader ASP.NET
- ImagePreviewWindow Class HTML5/Flash Uploader ASP.NET
- ImageUploaderFlash Class HTML5/Flash Uploader ASP.NET
- Language Enumeration HTML5/Flash Uploader ASP.NET
- Messages Class HTML5/Flash Uploader ASP.NET
- Metadata Class HTML5/Flash Uploader ASP.NET
- Package Class HTML5/Flash Uploader ASP.NET
- PaneItem Class HTML5/Flash Uploader ASP.NET
- PaneViewMode Enumeration HTML5/Flash Uploader ASP.NET
- PostFields Class HTML5/Flash Uploader ASP.NET
- ProgressBytesMode Enumeration HTML5/Flash Uploader ASP.NET
- ResizeQuality Enumeration HTML5/Flash Uploader ASP.NET
- Restrictions Class HTML5/Flash Uploader ASP.NET
- SortDirection Enumeration HTML5/Flash Uploader ASP.NET
- SortMode Enumeration HTML5/Flash Uploader ASP.NET
- StatusPane Class HTML5/Flash Uploader ASP.NET
- ThumbnailFitMode Enumeration HTML5/Flash Uploader ASP.NET
- TopPane Class HTML5/Flash Uploader ASP.NET
- UploadedFile Class HTML5/Flash Uploader ASP.NET
- UploaderModule Class HTML5/Flash Uploader ASP.NET
- UploadErrorDialog Class HTML5/Flash Uploader ASP.NET
- UploadHandler Class HTML5/Flash Uploader ASP.NET
- UploadPane Class HTML5/Flash Uploader ASP.NET
- UploadRequest Class HTML5/Flash Uploader ASP.NET
- UploadSettings Class HTML5/Flash Uploader ASP.NET
- Aurigma.ImageUploaderFlash.AmazonS3 Namespace
- Aurigma.ImageUploaderFlash.AmazonS3.Design Namespace
- Aurigma.ImageUploaderFlash Namespace
- HTML5/Flash Uploader PHP Reference
- HTML5/Flash Uploader JavaScript Reference
- HTML5/Flash Uploader Client-Side Events Reference
- POST Field Reference
- HTML5/Flash Uploader ASP.NET Reference
- Licensing Information
- Legal Notices
Converter.ThumbnailWatermark Property HTML5/Flash Uploader ASP.NET
Gets or sets a watermark of the thumbnail.
Namespace:
Aurigma.ImageUploaderFlash
Assembly:
Aurigma.ImageUploaderFlash (in Aurigma.ImageUploaderFlash.dll)
Syntax
public string ThumbnailWatermark { get; set; }
Property Value
Type: System..String
The watermark of the thumbnail. Watermark string syntax is described in the Remarks section. For HTML5 uploader, you can also pass a JSON object with the same names as used for the string.
If an empty string is specified, watermark will not be drawn on the thumbnail.
Default value is "".
Remarks
The watermark string consists of several variables separated with a semicolon:
variable1=value1;variable2=value2;...
The following variables are supported:
| Variable | Description |
|---|---|
| Text |
Watermark text. If the text contains semicolon or quotation mark characters enclose it in single (
Note
If both text and image are used as watermarks, the text will always be rendered over the image. Default value is an empty string. When the text watermark is specified, the following parameter also makes sense:
|
| Tiled |
Boolean value specifying whether you want to draw a single line at the specified position ( Default value is |
| Angle |
A number specifying the rotation angle for the watermark. Default value is |
| When |
A string specifying when to apply the watermark operation - before it resizes the image or after. Possible values are: Default value is |
| FillColor |
Font color. It has the following syntax: Default value is an empty string (the fill is transparent). |
| Font |
Font name. This font should be installed on the client machine. That is why it is highly recommended to use some generic font like Default value is |
| Size |
Font size (in pixels). Default value is |
| Style |
Font style. The following styles are supported:
You can specify several styles separated with a comma. Example:
Default value is an empty string (regular font is used). |
| ImageUrl |
Url to an image that will be used as the watermark. For HTML5 uploader, it may be an inline image (using the data:URL).
Note
If both text and image are used as watermarks, the text will always be rendered over the image. Default value is an empty string. When the image watermark is specified, the following parameter also makes sense:
|
| Width |
Width of the image that will be used as the watermark. The image will be resized to the specified dimensions as an ordinary thumbnail, that is, the image can only be downsized, and its proportions are kept. Default value is an empty string (actual image width is used). |
| Height |
Height of the image that will be used as the watermark. The image will be resized to the specified dimensions as an ordinary thumbnail, i.e. the image can only be downsized and its proportions are kept. Default value is an empty string (actual image height is used). |
| Position |
Watermark position. It can take one of the following values:
Default value is |
| OffsetX |
Horizontal offset (in pixels) of the watermark relative to the position it is anchored to (according to the
Note
If horizontal position is left or center, coordinates direction is left-to-right. If it is right, coordinates direction is flipped to right-to-left. Default value is |
| OffsetY |
Vertical offset (in pixels) of the watermark relative to the position it is anchored to (according to the
Note
If vertical position is top or center, coordinates direction is top-to-bottom. If it is bottom, coordinates direction is flipped to bottom-to-top. Default value is |
| Opacity |
Watermark opacity percentage. If This value works for all elements of watermark. There is no way to configure different opacity for background, text outline and text fill. Default value is |
| BackgroundColor |
Background color. It has the following syntax: Default value is an empty string (the background is transparent). |
| BackgroundMarginWidth |
Width of additional space outside of the watermark filled with background (in pixels). Default value is |
| BackgroundMarginHeight |
Height of additional space outside of the watermark filled with background (in pixels). Default value is |
The watermark string is case insensitive.
Though you can set both image and text watermarks at the same time, it makes sense to use only one of them. For text watermarks the only required variable is Text.
Here is an example of watermark string which will draw green semi-transparent italic text Aurigma in the bottom left corner of an image:
<aur:ImageUploaderFlash ID="Uploader1" runat="server" >
<Converters>
<aur:Converter Mode="*.*=Thumbnail" />
</Converters>
</aur:ImageUploaderFlash>
Uploader1.Converters[0].ThumbnailWatermark="Text=Aurigma;Opacity=75;FillColor=0x00ff00;Position=BottomLeft;Style=Italic;Size=30"
For image watermarks ImageUrl, Width, and Height are required. Here is an example of semi-transparent logo drawn in the top tight corner of the image:
Uploader1.Converters[0].ThumbnailWatermark="ImageUrl=http://localhost/watermark.png;Width=86;Height=63;Position=TopRight;Opacity=50"
Alternatively, you can use the JSON object instead of a string:
var u = $au.imageUploaderFlash({
id: 'Uploader1',
converters: [{mode: '*.*=Thumbnail',
thumbnailWatermark: {
ImageUrl: 'http://localhost/watermark.png',
Width: 86,
Height: 63,
Tiled: true,
When: 'AfterResize',
Opacity: 50}
});
However this syntax is not compatible with Flash uploader. If you want to use the object with Flash, the simplest way is to convert it to the string using the jQuery's $.param as follows:
var a = 45; // Angle
var watermarkObj = { Text: 'Aurigma', Angle: a};
var watermarkString = decodeURIComponent($.param(wsettings)).replace(/&/g, ";");
// ... pass this string to the thumbnailWatermark property.
This property makes sense only if the Mode property has the Thumbnail value.
See Also
Reference
- Converter Class
- Aurigma.ImageUploaderFlash Namespace
- $au.converter.thumbnailWatermark JavaScript Property HTML5/Flash Uploader
- Converter.ThumbnailWatermark PHP Property HTML5/Flash Uploader