Handle scale=0 in getImageSrc

This commit is contained in:
Isaac Connor
2023-11-20 17:23:51 -05:00
parent 5be0ce5704
commit 092f8df115

View File

@@ -477,7 +477,7 @@ class Event extends ZM_Object {
$hasAnalysisImage = $alarmFrame && file_exists($analysisPath) && filesize($analysisPath);
$isAnalysisImage = $hasAnalysisImage && !$captureOnly;
if ( !ZM_WEB_SCALE_THUMBS || ($scale >= SCALE_BASE) || !function_exists('imagecreatefromjpeg') ) {
if ( !ZM_WEB_SCALE_THUMBS || !$scale || ($scale >= SCALE_BASE) || !function_exists('imagecreatefromjpeg') ) {
$imagePath = $thumbPath = $isAnalysisImage ? $analysisPath : $capturePath;
$imageFile = $imagePath;
$thumbFile = $thumbPath;