Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8602ff12
authored
Sep 18, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 优化水印功能
1 parent
fbbeaea4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
h5/src/components/jPlayer/index.vue
h5/src/components/jPlayer/watermark.vue
h5/src/components/jPlayer/index.vue
View file @
8602ff1
...
...
@@ -165,7 +165,7 @@ export default {
const
watermarkedBase64
=
canvas
.
toDataURL
(
'image/png'
);
// 现在,watermarkedBase64 包含了带有水印的 base64 图像数据
console
.
log
(
watermarkedBase64
);
//
console.log(watermarkedBase64);
resolve
(
watermarkedBase64
);
};
image
.
error
=
function
()
{
...
...
h5/src/components/jPlayer/watermark.vue
View file @
8602ff1
...
...
@@ -57,7 +57,7 @@ export default {
// 定义水印间隔和边距
// TODO: 未兼容移动端
const
watermarkIntervalX
=
220
;
// 水印之间的水平间隔
const
watermarkIntervalY
=
2
6
0
;
// 水印之间的垂直间隔
const
watermarkIntervalY
=
2
2
0
;
// 水印之间的垂直间隔
const
watermarkMarginX
=
50
;
// 水印距离左边的边距
const
watermarkMarginY
=
180
;
// 水印距离顶部的边距
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment