Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2023-05-18 23:00:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6e9587485deb58386ad02cce647042f061821deb
6e958748
1 parent
1fd367c2
1.修复一些bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
app/Jobs/AdminMakeImmerse.php
app/Jobs/AdminMakeImmerse.php
View file @
6e95874
...
...
@@ -206,6 +206,21 @@ class AdminMakeImmerse implements ShouldQueue
$components
=
$this
->
adminMakeVideo
->
temp
->
components
;
$drawtext
=
''
;
// 底部加入文字水印
$text_file
=
$this
->
getAbsolutePath
(
$this
->
getTempPath
(
'.txt'
,
'text'
));
file_put_contents
(
$text_file
,
'Parlando.ink'
);
$font_file
=
$this
->
getAbsolutePath
(
"files/d7300fd8be7ff27fb0a11d1afe717374.otf"
);
$font_size
=
$this
->
calcFontSize
(
22
);
$drawtext
.=
'drawtext="'
.
'fontfile='
.
escapeshellarg
(
$font_file
)
.
':'
.
'textfile='
.
escapeshellarg
(
$text_file
)
.
':'
.
'fontsize='
.
$font_size
.
':'
.
'fontcolor=white@0.8:'
.
'x='
.
escapeshellarg
(
'w-text_w'
)
.
':'
.
'y='
.
escapeshellarg
(
'h-text_h-1'
)
.
':'
.
'", '
;
foreach
(
$components
as
$component
)
{
$text_color
=
$component
->
text_color
??
'white'
;
$text_bg_color
=
$component
->
text_bg_color
??
'0xd0cdcc'
;
...
...
Please
register
or
login
to post a comment