Marker
Defined in: web/index.ts:153
Public image-marking API shared by native and Web targets.
Metro selects the native TurboModule implementation on iOS and Android. React Native Web and standard browser bundlers select this SSR-safe Canvas 2D implementation, which only touches DOM globals when a method is called.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Marker():
Marker
Returns
Section titled “Returns”Marker
Methods
Section titled “Methods”createRecipe()
Section titled “createRecipe()”
staticcreateRecipe<ResultOptions>(options,resultOptions?):WatermarkRecipe<ResultOptionsextendsWatermarkBlobRecipeResultOptions?Blob:string>
Defined in: web/index.ts:254
Save ordered layers and output settings for reuse across one or many images.
Type Parameters
Section titled “Type Parameters”ResultOptions
Section titled “ResultOptions”ResultOptions extends WatermarkRecipeResultOptions | undefined = undefined
Parameters
Section titled “Parameters”options
Section titled “options”resultOptions?
Section titled “resultOptions?”ResultOptions
Returns
Section titled “Returns”WatermarkRecipe<ResultOptions extends WatermarkBlobRecipeResultOptions ? Blob : string>
detectInvisible()
Section titled “detectInvisible()”
staticdetectInvisible(options):Promise<InvisibleWatermarkDetectionResult>
Defined in: web/index.ts:231
Detect and authenticate an invisible locator in an image without writing a file.
Parameters
Section titled “Parameters”options
Section titled “options”DetectInvisibleWatermarkOptions
Returns
Section titled “Returns”Promise<InvisibleWatermarkDetectionResult>
detectInvisibleMany()
Section titled “detectInvisibleMany()”
staticdetectInvisibleMany(inputs,options?):Promise<WatermarkBatchResult<InvisibleWatermarkDetectionResult>[]>
Defined in: web/index.ts:189
Detect authenticated locators in many images while preserving input order.
Parameters
Section titled “Parameters”inputs
Section titled “inputs”readonly DetectInvisibleWatermarkOptions[]
options?
Section titled “options?”WatermarkBatchOptions<InvisibleWatermarkDetectionResult>
Returns
Section titled “Returns”Promise<WatermarkBatchResult<InvisibleWatermarkDetectionResult>[]>
embedInvisible()
Section titled “embedInvisible()”
staticembedInvisible(options):Promise<string>
Defined in: web/index.ts:211
Embed a short, authenticated locator into the final image pixels.
This Beta API supports distribution tracing. It is not DRM, encryption, or proof that the image was never edited.
Parameters
Section titled “Parameters”options
Section titled “options”EmbedInvisibleWatermarkOptions
Returns
Section titled “Returns”Promise<string>
embedInvisibleMany()
Section titled “embedInvisibleMany()”
staticembedInvisibleMany(inputs,options?):Promise<WatermarkBatchResult<string>[]>
Defined in: web/index.ts:172
Embed authenticated locators into many images while preserving input order.
Parameters
Section titled “Parameters”inputs
Section titled “inputs”readonly EmbedInvisibleWatermarkOptions[]
options?
Section titled “options?”WatermarkBatchOptions<string>
Returns
Section titled “Returns”Promise<WatermarkBatchResult<string>[]>
embedInvisibleWithCredentials()
Section titled “embedInvisibleWithCredentials()”
staticembedInvisibleWithCredentials(options):Promise<EmbedInvisibleWithCredentialsResult>
Defined in: web/index.ts:155
Embed a locator first, then ask the supplied adapter to sign the result.
Parameters
Section titled “Parameters”options
Section titled “options”EmbedInvisibleWithCredentialsOptions
Returns
Section titled “Returns”Promise<EmbedInvisibleWithCredentialsResult>
mark()
Section titled “mark()”
staticmark(options):Promise<string>
Defined in: web/index.ts:336
Render ordered mixed text and image watermark layers.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<string>
markImage()
Section titled “markImage()”
staticmarkImage(options):Promise<string>
Defined in: web/index.ts:317
Render one or more image watermark layers.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<string>
markText()
Section titled “markText()”
staticmarkText(options):Promise<string>
Defined in: web/index.ts:300
Render one or more text watermark layers.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<string>
verifyContentCredentials()
Section titled “verifyContentCredentials()”
staticverifyContentCredentials(options):Promise<ContentCredentialsVerificationResult>
Defined in: web/index.ts:165
Verify Content Credentials through an application-supplied adapter.
Parameters
Section titled “Parameters”options
Section titled “options”VerifyContentCredentialsOptions
Returns
Section titled “Returns”Promise<ContentCredentialsVerificationResult>