exif: fix buid definition
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/807/merge
parent
55631f53b6
commit
ce78d81d77
|
@ -274,12 +274,12 @@ class Exif
|
||||||
*/
|
*/
|
||||||
public static function getBUID(string $basename, $imageUniqueID, int $size): string
|
public static function getBUID(string $basename, $imageUniqueID, int $size): string
|
||||||
{
|
{
|
||||||
$imageUniqueID = "size={$size}";
|
$sfx = "size={$size}";
|
||||||
if (null === $imageUniqueID || \strlen((string) $imageUniqueID) < 4) {
|
if (null !== $imageUniqueID && \strlen((string) $imageUniqueID) >= 4) {
|
||||||
$imageUniqueID = "iuid={$imageUniqueID}";
|
$sfx = "iuid={$imageUniqueID}";
|
||||||
}
|
}
|
||||||
|
|
||||||
return md5($basename.$imageUniqueID);
|
return md5($basename.$sfx);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue