You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a temporary solution I modified the source code (/var/www/html/lib/private/legacy/OC_Image.php) like this:
public function getOrientation(): int {
// rest of the function
$this->exif = $exif;
+ if (gettype($exif['Orientation']) == 'array') {+ return -1;+ }
return $exif['Orientation'];
}
By returning -1, when an array is detected, the program continues its job. I can't do many experiments since this is a production environment.
The text was updated successfully, but these errors were encountered:
I'm running it again because I can't find the text file dump I made so I don't remember the exact file name. Can the error be triggered again without a full regeneration, like this?
I have the same problem and requested a list of the "defective" images. In all cases, the "Orientation" property does not contain an integer but some form of garbage data. I solved the problem for myself with the following workaround. The function should check if the "Orientation" property contains an officially valid value (1-8).
I have the same problem and requested a list of the "defective" images. In all cases, the "Orientation" property does not contain an integer but some form of garbage data. I solved the problem for myself with the following workaround. The function should check if the "Orientation" property contains an officially valid value (1-8).
Hello,
I'm running Nextcloud 26.0.11 and previewgenerator 5.4.0.
I am in the process of regenerating the image previews. Unfortunately I get this error:
As a temporary solution I modified the source code (
/var/www/html/lib/private/legacy/OC_Image.php
) like this:By returning -1, when an array is detected, the program continues its job. I can't do many experiments since this is a production environment.
The text was updated successfully, but these errors were encountered: