Merge remote-tracking branch 'upstream/develop' into ocr

This commit is contained in:
Michael 2024-01-14 18:33:02 +00:00
commit 5acfff1152
60 changed files with 526 additions and 488 deletions

View file

@ -135,7 +135,7 @@ class Link
}
$fields = ['mimetype' => $curlResult->getHeader('Content-Type')[0]];
$img_str = $curlResult->getBody();
$img_str = $curlResult->getBodyString();
$image = new Image($img_str, Images::getMimeTypeByData($img_str));
if ($image->isValid()) {
$fields['mimetype'] = $image->getType();