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) {