1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

don`t ocr non-images

This commit is contained in:
czaks 2016-06-10 12:41:53 +02:00
parent c9ef21bff9
commit e230f1472c

View File

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