diff --git a/class_image.php b/class_image.php index c1fe56d..7bb1a0d 100644 --- a/class_image.php +++ b/class_image.php @@ -152,6 +152,7 @@ class MTGImage implements JsonSerializable { $text = str_replace("\n", " ", $text); return $this->setOCR($text); } catch ( Exception $e ) { + $this->setOCR("ocr failed"); return $e->getMessage(); } }