exif: fix buid definition

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/807/merge
Varun Patil 2023-10-04 15:34:15 -07:00
parent 55631f53b6
commit ce78d81d77
1 changed files with 4 additions and 4 deletions

View File

@ -274,12 +274,12 @@ class Exif
*/
public static function getBUID(string $basename, $imageUniqueID, int $size): string
{
$imageUniqueID = "size={$size}";
if (null === $imageUniqueID || \strlen((string) $imageUniqueID) < 4) {
$imageUniqueID = "iuid={$imageUniqueID}";
$sfx = "size={$size}";
if (null !== $imageUniqueID && \strlen((string) $imageUniqueID) >= 4) {
$sfx = "iuid={$imageUniqueID}";
}
return md5($basename.$imageUniqueID);
return md5($basename.$sfx);
}
/**