summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-06-10 12:41:53 +0200
committerczaks <marcin@6irc.net>2016-06-10 12:41:53 +0200
commite230f1472cdd9fe5d416196d51e905eac22ce70e (patch)
tree3b5b3c8c39d89797a19bd90616f52bee0836dbb8 /post.php
parentc9ef21bff98698902cf5c89b3baf29a17864fd7a (diff)
don`t ocr non-images
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
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) {