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:
parent
c9ef21bff9
commit
e230f1472c
2
post.php
2
post.php
@ -788,7 +788,7 @@ if (isset($_POST['delete'])) {
|
|||||||
$file['thumbheight'] = $size[1];
|
$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'];
|
$fname = $file['tmp_name'];
|
||||||
|
|
||||||
if ($file['height'] > 500 || $file['width'] > 500) {
|
if ($file['height'] > 500 || $file['width'] > 500) {
|
||||||
|
Loading…
Reference in New Issue
Block a user