added notes and config, command as variable
This commit is contained in:
1 parent
9b8c9109f1
commit
905a2d87ca
6 files changed
+541
-265
No files matched your search
@@ -20,14 +20,13 @@ class ConvertToComic implements ShouldQueue
|
||||
{
|
||||
$absolutePath = Storage::disk('public')->path($this->photoJob->image_path);
|
||||
|
||||
$result = Process::timeout(0)->run(
|
||||
'gmic ' . escapeshellarg($absolutePath) .
|
||||
$command = 'gmic ' . escapeshellarg($absolutePath) .
|
||||
' simplelocalcontrast_p 16,2,0,1,1,1,1,1,1,1,1,0' .
|
||||
' -o ' . escapeshellarg($absolutePath) .
|
||||
' && gmic ' . escapeshellarg($absolutePath) .
|
||||
' cl_comic 4,1,0,0,1,15,15,1,10,20,6,2,0,0,0,0,0,0,50,50' .
|
||||
' -o ' . escapeshellarg($absolutePath)
|
||||
);
|
||||
' -o ' . escapeshellarg($absolutePath);
|
||||
$result = Process::timeout(0)->run($command);
|
||||
|
||||
$this->photoJob->update([
|
||||
'status' => $result->successful() ? 'done' : 'failed',
|
||||
|
||||
Reference in new issue
Block a user