El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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
On this page

Show all

Public Parameters

Updated on 2024-02-29 GMT+08:00

You can use the GUI, code, or APIs to configure public parameters.

You can add a text or image watermark to the original image.

The Base64 code for URL transmission applies to paths of content and fonts of text watermarks, or paths of image watermarks. It is not advisable to put standard Base64 code directly into the URL for transmission. In Base64 encoding for URL transmission, contents are coded into character strings by standard Base64 code. After verifying these strings, replace the plus sign (+) with hyphen (-), and slash (/) with underline (_). For details about encoding, see those specified in RFC4648.

Operation name: watermark

Public parameters are applicable to setting image watermarks and text watermarks. You can add text watermarks and image watermarks to the same image. Table 1 lists the basic parameters in detail.

Table 1 Public Parameters

Parameter

Value Description

Code Example

g

Optional, represents the location of the watermark: tl, top, tr, left, center, right, bl, bottom, and br. The default value is tl.

Figure 1 is the 3 x 3 grid illustrating these values. Each value locates at the top left corner of a grid.

image/watermark,image_aW1hZ2UtZGVtby

9sb2dvLnBuZw==,g_br,t_90,x_10,y_10

x

Optional parameter, representing the horizontal distance from the image edge. By default, the origin is at the top left corner. x ranges [0, 4096]. It is set to 10 by default, with the unit pixel (px).

y

Optional parameter, representing the vertical distance from the image edge. By default, the origin is at the top left corner. x ranges [0, 4096]. It is set to 10 by default, with the unit pixel (px).

voffset

Optional parameter, representing the vertical offset from the horizontal centerline of the image. This parameter offsets the watermark up or down from the horizontal centerline of the image. voffset ranges [-1000, 1000]. It is set to 0 by default, with the unit pixel (px).

voffset is meaningful only when g is set to left, center, or right. That is to say, the watermark locates in the left, center, or right grid.

align

Optional parameter, representing the align mode of the text watermark and the image watermark. The value can be 0, 1, or 2. It is set to 0 by default.

  • 0: The top edges of the text watermark and the image watermark are aligned.
  • 1: The centerlines of the text watermark and the image watermark are aligned.
  • 2: The bottom edges of the text watermark and the image watermark are aligned.

order

Optional parameter, representing the sequence of the text watermark and the image watermark. The value can be 0 (default value) or 1.

  • 0: Image in front, text behind.
  • 1: Text in front, image behind.

t

Optional parameter, representing the extent of transparency of the text or image watermark. t ranges [0, 100]. The default value is 100, indicating the watermark is not transparent at all.

interval

Optional parameter, representing the distance between the text watermark and image watermark. The interval ranges [0, 1000].

Figure 1 is the 3 x 3 grid illustrating the location of the watermark.

Figure 1 3 x 3 grid of watermark location
NOTE:

If both a text watermark and an image watermark are added to the original image, the location of the watermark can be adjusted by the horizontal distance x, vertical distance y, and the vertical offset from the horizontal centerline voffset. You can adjust the layout of the two watermarks as well.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback