diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2017-03-02 11:26:51 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2017-03-02 11:26:51 +0900 |
| commit | b4c53e4474f8b4d80d4292b49138ccf5d3021b33 (patch) | |
| tree | 8225b0f93a64433e5f7ee203abac0279a99e22a1 /post.php | |
| parent | 7f53755f7586bdf8d2ea7f0f4ae8ac0515507b56 (diff) | |
Fix relative path to temporary directory for Tesseract OCR
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) . " | " . |
