forked from leftypol/leftypol
Fix relative path to temporary directory for Tesseract OCR
This commit is contained in:
parent
cb6a6eb5e3
commit
e93e954bad
1 changed files with 1 additions and 1 deletions
2
post.php
2
post.php
|
@ -1006,7 +1006,7 @@ if (isset($_POST['delete'])) {
|
|||
if ($fname == 'spoiler') { // We don't have that much CPU time, do we?
|
||||
}
|
||||
else {
|
||||
$tmpname = "tmp/tesseract/".rand(0,10000000);
|
||||
$tmpname = __DIR__ . "/tmp/tesseract/".rand(0,10000000);
|
||||
|
||||
// Preprocess command is an ImageMagick b/w quantization
|
||||
$error = shell_exec_error(sprintf($config['tesseract_preprocess_command'], escapeshellarg($fname)) . " | " .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue