From e230f1472cdd9fe5d416196d51e905eac22ce70e Mon Sep 17 00:00:00 2001 From: czaks Date: Fri, 10 Jun 2016 12:41:53 +0200 Subject: [PATCH] don`t ocr non-images --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index bf723e01..383154fb 100644 --- a/post.php +++ b/post.php @@ -788,7 +788,7 @@ if (isset($_POST['delete'])) { $file['thumbheight'] = $size[1]; } - if ($config['tesseract_ocr']) { // Let's OCR it! + if ($config['tesseract_ocr'] && $file['thumb'] != 'file') { // Let's OCR it! $fname = $file['tmp_name']; if ($file['height'] > 500 || $file['width'] > 500) {