LogoLogo
BlogHelp CenterPrivacyLoginRegister
  • Let's optimize your images
  • Transformations
    • Input formats
    • Image operations
      • Width and height
      • Prevent enlargement
      • Crop
        • Automatic gravity crop
        • Positionable crop
        • Focal point crop
        • Face crop
        • Face hide
        • Aspect ratio crop
      • Fit
      • Cropfit
      • Bound
      • Boundmin
      • Cover
      • Device pixel ratio
      • Flip
      • Rotate
      • Trim
      • Rounded corners
      • Background removal
    • Image filters
      • Adjustment
        • Brightness
        • Contrast
        • Saturate
      • Color manipulation
        • Color overlay
        • Grayscale
        • Duotone
        • Sepia
        • Invert
      • Blur
      • Pixelate
      • Sharpen
      • Face blur
    • Image watermarking
      • Static watermark
      • Dynamic watermark
      • Text watermark
        • Text watermark fonts
    • Image compression
      • Image formats
      • Optipress
      • SVG compression
      • Color management
    • Static content
      • PDF to image
      • JS/CSS optimization
    • Video operations
  • Setup
    • Shortening URLs
      • Origin URL prefix
      • Aliases
      • Presets
      • Rules
    • Connecting storage bucket
      • Amazon S3
      • Google Cloud Storage
      • Microsoft Azure Blob
      • Basic authentication HTTP
    • Security
      • Token security
        • Domain whitelisting
        • URL signature
        • URL sealing
      • Account security
      • Origin security
  • Implementation
    • URL API implementation
    • Responsive images JS plugin
    • CMS plugins
      • Spryker
      • Drupal
      • Kontent.ai
      • Contentful
      • Adobe Commerce (Magento)
        • Basic implementation
        • Advanced implementation
      • Opencart
      • Prestashop
        • Prestashop tutorial
      • Shopware
      • Sylius
      • Wordpress
      • Shopify tutorial
        • Shopify integration
        • Theme files
        • FAQ
      • Commercetools tutorial
      • Ruby wrapper
    • Migrating from another image CDN
  • Caching and acceleration
    • CDN basics
    • Caching interval
    • Invalidation API
    • Warmup API
  • Analytics
    • Dashboards
      • Overview
      • Volumetry
      • Optimization
      • Delivery
      • Top-Ranking
      • RUM
      • Logs API
  • Cloudimage_v6 EOL
Powered by GitBook
LogoLogo

Resources

  • Help center
  • Contact support
  • Developers
  • cloudimage.io

Solutions

  • Media optimization
  • DAM
  • Performance report

Company

  • Blog
  • Service status
  • About us

Legal stuff

  • Terms & conditions
  • Privacy center
  • DMCA

Copyright © 2023 Scaleflex

On this page
  • Available parameters
  • Examples

Was this helpful?

Export as PDF
  1. Transformations
  2. Image watermarking

Text watermark

Apply text overlay

PreviousDynamic watermarkNextText watermark fonts

Last updated 10 months ago

Was this helpful?

If you need to tag an image or add a reference number as an overlay, use the text watermark function.

Available parameters

Parameter
Syntax
Description

use watermark

wat=1

(required) Activates the watermark function

watermark text

wat_text=X

(required) The text to be overlayed. Can be URL-encoded

watermark gravity

wat_gravity=X X=[north|south][east|west]|center| absolute|relative

Defines the position to "anchor" the watermark to

watermark padding

wat_pad=X[p][,Y[p]] X/Y=0..100[p]

Adds padding from the anchoring point in pixels (X) or in percent (Xp)

watermark position

wat_pos=X[,Y]

sets the position in percent from the resized image; works only with wat_gravity=absolute and wat_gravity=relative

watermark opacity

wat_opacity=X X=0..1

Defines watermark opacity

watermark font

wat_font=X

Choose the font family for the overlay

watermark color

wat_color=X | wat_colour=X

Sets the text color

watermark font size

wat_fontsize=X | wat_fontsize=Xmax

Sets the font size. If the Xmax syntax is used, the size is reduced if the text cannot fit in the image

Examples

Preview
Syntax

Text too long for the image:

Text size limit set with wat_fontsize=20max:

/sample.li/flat1.jpg?w=550&wat=1&wat_gravity=northeast&wat_text=REF00189300B&wat_pad=10&wat_font=Arial-Black&wat_fontsize=18&wat_color=660000
/sample.li/flat1.jpg?w=400&wat=1&wat_gravity=north&wat_text=A%20VERY%20LONG%20TEXT%20WHICH%20WON%27T%20FIT&wat_pad=10&wat_font=Arial-Black&wat_fontsize=20&wat_color=000
/sample.li/flat1.jpg?w=400&wat=1&wat_gravity=north&wat_text=A%20VERY%20LONG%20TEXT%20WHICH%20WON%27T%20FIT&wat_pad=10&wat_font=Arial-Black&wat_fontsize=20max&wat_color=000