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:31:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b2372d6f33795481405a3dfa07015815710c44ef
b2372d6f
1 parent
8ef270d4
1.调整一些字号大小
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
app/Admin/Controllers/ImmerseController.php
app/Jobs/AdminMakeImmerse.php
app/Jobs/UserMakeImmerse.php
app/Admin/Controllers/ImmerseController.php
View file @
b2372d6
...
...
@@ -20,6 +20,7 @@ class ImmerseController extends AdminController
protected
function
grid
()
{
return
Grid
::
make
(
new
Immerse
(),
function
(
Grid
$grid
)
{
$grid
->
model
()
->
orderByDesc
(
"id"
);
// 去掉新增和删除按钮
$grid
->
disableCreateButton
();
// $grid->disableFilterButton();
...
...
app/Jobs/AdminMakeImmerse.php
View file @
b2372d6
...
...
@@ -211,7 +211,7 @@ class AdminMakeImmerse implements ShouldQueue
$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
(
12
);
$font_size
=
$this
->
calcFontSize
(
9
);
$drawtext
.=
'drawtext="'
.
'fontfile='
.
escapeshellarg
(
$font_file
)
.
':'
.
'textfile='
.
escapeshellarg
(
$text_file
)
.
':'
.
...
...
@@ -323,7 +323,7 @@ class AdminMakeImmerse implements ShouldQueue
'fontsize='
.
$font_size
.
':'
.
'fontcolor_expr='
.
escapeshellarg
(
$text_color
.
'%{eif\\\\: clip(255*(1*between(t\\, '
.
$DS
.
' + '
.
$FID
.
'\\, '
.
$DE
.
' - '
.
$FOD
.
') + ((t - '
.
$DS
.
')/'
.
$FID
.
')*between(t\\, '
.
$DS
.
'\\, '
.
$DS
.
' + '
.
$FID
.
') + (-(t - '
.
$DE
.
')/'
.
$FOD
.
')*between(t\\, '
.
$DE
.
' - '
.
$FOD
.
'\\, '
.
$DE
.
'))\\, 0\\, 255) \\\\: x\\\\: 2 }'
)
.
':'
.
'x='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
'midMiddle'
][
0
])
.
':'
.
'y='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
'midMiddle'
][
1
]
.
'+'
.
$font_size
)
.
':'
.
'y='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
'midMiddle'
][
1
]
.
'+'
.
$font_size
*
2
)
.
':'
.
'", '
;
}
elseif
(
$content
[
'tag'
]
==
'source'
){
$arr
=
explode
(
"
\n
"
,
$content
[
'text'
]);
...
...
app/Jobs/UserMakeImmerse.php
View file @
b2372d6
...
...
@@ -603,7 +603,7 @@ class UserMakeImmerse implements ShouldQueue
'fontsize='
.
$font_size
.
':'
.
'fontcolor_expr='
.
escapeshellarg
(
$text_color
.
'%{eif\\\\: clip(255*(1*between(t\\, '
.
$DS
.
' + '
.
$FID
.
'\\, '
.
$DE
.
' - '
.
$FOD
.
') + ((t - '
.
$DS
.
')/'
.
$FID
.
')*between(t\\, '
.
$DS
.
'\\, '
.
$DS
.
' + '
.
$FID
.
') + (-(t - '
.
$DE
.
')/'
.
$FOD
.
')*between(t\\, '
.
$DE
.
' - '
.
$FOD
.
'\\, '
.
$DE
.
'))\\, 0\\, 255) \\\\: x\\\\: 2 }'
)
.
':'
.
'x='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
'midMiddle'
][
0
])
.
':'
.
'y='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
'midMiddle'
][
1
]
.
'+'
.
$font_size
)
.
':'
.
'y='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
'midMiddle'
][
1
]
.
'+'
.
$font_size
*
2
)
.
':'
.
'", '
;
}
elseif
(
$content
[
'tag'
]
==
'source'
){
$arr
=
explode
(
"
\n
"
,
$content
[
'text'
]);
...
...
Please
register
or
login
to post a comment