Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Injecting Watermarks to Images

Updated on 2024-12-27 GMT+08:00

The DSC console offers a feature for injecting watermarks into JPG or JPEG files. You can refer to this section to apply customized watermarking to your cloud-stored files in OBS buckets or to images on your local device.

Prerequisites

Constraints

  • The maximum size of an image is 20 MB.
  • The resolution of the image to be watermarked must be greater than 128 x 128 pixels.
  • The maximum length of the invisible text watermark is 32 characters.

Injecting Watermarks into OBS Bucket Files

  1. Log in to the management console.
  2. Click in the upper left corner and select a region or project.
  3. In the navigation tree on the left, click . Choose Security & Compliance > Data Security Center .
  4. In the navigation tree on the left, choose Data Asset Protection > Image Watermarking. The Image Watermarking page is displayed.
  5. On the OBS Bucket Files tab page, set the path in the File Settings area.

    Figure 1 File settings
    1. Click Add next to Original image path to select the cloud path of the original images. The size of the selected image cannot exceed 20 MB.
    2. Click Add next to Storage destination path to select the destination storage path.
    3. Click the Save Target File Name text box and enter the name of the watermarked image file. The file name contains a maximum of 32 characters, and the file name extension is *.jpg, *.jpeg, *.jpe, *.png, *.bmp, *.dib, *.rle, *.tiff, *.tif, *.ppm, *.webp, *.tga, *.tpic, or *.gif.

  6. Watermark type can be visible watermark and invisible watermark.

    • Visible watermark: The watermark can be displayed on the image. For details about the related parameters, see Table 1.
      Table 1 Configuring a visible watermark

      Parameter

      Description

      Watermark Content

      Select the Watermark Content from the drop-down list box.

      • Image watermark
      • Text watermark.

      Image Path

      If Watermark Content is set to Image watermark, click Add to select an image on the cloud as the watermark.

      The watermark image must be in the same area as the original image. Otherwise, the preview fails.

      Text Content

      If Watermark Content is set to Text Watermark, click the text box and enter the text watermark content. The value contains 1 to 32 characters, including only digits and case-sensitive letters.

      Watermark Position

      Select the position where the watermark is injected.

      Image Size

      Absolute size of the image to be injected. This parameter is displayed when Watermark Content is set to Image watermark. The value ranges from 0 to 100.

      Watermark Size

      Size of the text watermark to be injected. This parameter is displayed when Watermark Content is set to Text watermark. The value ranges from 1 to 100.

      Watermark Transparency

      Transparency of the watermark to be injected. The value ranges from 1 to 100.

      Horizontal Margin

      Horizontal margin of the watermark to be injected relative to the image. The value ranges from 0 to 100.

      Vertical Margin

      Vertical margin of the watermark to be injected relative to the image. The value ranges from 0 to 100.

      Font Color

      This parameter is displayed when Watermark Content is set to Text watermark. You can click the color bar to select the font color of the text watermark to be injected.

      Figure 2 Configuring a visible watermark
    • Invisible watermark: The watermark text is invisible and needs to be extracted using tools. For details about how to extract an invisible watermark, see Extracting Watermarks from Images.
      NOTE:

      For effective watermark embedding, the resolution of the watermark image should be at least 64 x 64 pixels. Upon extraction, the watermark will be displayed as a downscaled version, resized to precisely 64 x 64 pixels.

      Table 2 Configuring an invisible watermark

      Parameter

      Description

      Watermark Content

      Select the Watermark Content from the drop-down list box.

      • Image watermark
      • Text watermark.

      Text Content

      If Watermark Content is set to Text Watermark, click the text box and enter the text watermark content. The value contains 1 to 32 characters.

      Image path

      If Watermark Content is set to Image watermark, click Add to select an image on the cloud as the watermark.

      Figure 3 Configuring an invisible watermark

  7. After parameters are configured, click OK. The file with watermark injected is automatically downloaded to the specified path on the local PC.

    NOTICE:
    • If you injected a visible watermark, open the target file to view the watermark.
    • If you injected an invisible watermark, extract the watermark from the target file using tools. For details, see Extracting Watermarks from Images.

  8. Click Preview in the lower left corner of the page and preview the watermark effect in the visible watermark preview area on the right. The invisible watermark cannot be previewed.
  9. Click OK to complete watermark injection.

Creating a Local File Watermark Injection Task

  1. Log in to the management console.
  2. Click in the upper left corner and select a region or project.
  3. In the navigation tree on the left, click . Choose Security & Compliance > Data Security Center .
  4. In the navigation tree on the left, choose Data Asset Protection > Image Watermarking. The Image Watermarking page is displayed.
  5. Click the Local File tab. The Watermark Injection page is displayed.
  6. Click Add File and select the local image file to which you want to add watermarks.
  7. Watermark type can be visible watermark and invisible watermark.

    • Visible watermark: Watermarks are visible on images.
    • Invisible watermark: The watermark text is invisible and needs to be extracted using tools. For details about how to extract an invisible watermark, see Extracting Watermarks from Images.

  8. Set the watermark parameters according to Table 3.

    Table 3 Watermark settings

    Watermark Type

    Parameter

    Description

    Visible watermark

    Watermark Content

    Select the watermark content from the drop-down list box.

    • Image watermark
    • Text watermark.

    Watermark Image

    When Watermark Content is set to Image watermark, click Add File to add an image as the watermark.

    The watermark image must be in the same area as the original image. Otherwise, the preview fails.

    Text Content

    This parameter is displayed when Watermark content is set to Text watermark. Click the text box to enter the text watermark content. The text watermark contains 1 to 32 characters, including only digits and case-sensitive letters.

    Watermark Position

    Select the position where the watermark is injected.

    Image Size

    Absolute size of the image to be injected. This parameter is displayed when Watermark Content is set to Image watermark. The value ranges from 0 to 100.

    Watermark Size

    Size of the text watermark to be injected. This parameter is displayed when Watermark Content is set to Text watermark. The value ranges from 1 to 100.

    Watermark Transparency

    Transparency of the watermark to be injected. The value ranges from 1 to 100.

    Horizontal Margin

    Horizontal margin of the watermark to be injected relative to the image. The value ranges from 0 to 100.

    Vertical Margin

    Vertical margin of the watermark to be injected relative to the image. The value ranges from 0 to 100.

    Font Color

    This parameter is displayed when Watermark Content is set to Text watermark. You can click the color bar to select the font color of the text watermark to be injected.

    Invisible watermark

    Watermark Content

    Select the watermark content from the drop-down list box.

    • Image watermark
    • Text watermark.

    Watermark Image

    This parameter is displayed when Watermark Content is set to Image watermark. Click Add File to select a local image as the watermark.

    Text Content

    This parameter is displayed when Watermark Content is set to Text watermark. Click the text box to enter the watermark text content.

    Figure 4 Watermark settings

  9. After parameters are configured, click OK. The file with watermark injected is automatically downloaded to the specified path on the local PC.

    NOTICE:
    • If you injected a visible watermark, open the target file to view the watermark.
    • If you injected an invisible watermark, extract the watermark from the target file using tools. For details, see Extracting Watermarks from Images.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback