mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
Fix quality=0 handling #2
Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
parent
0ad8fff9f9
commit
4b06af4093
@ -275,7 +275,7 @@ def get_image_quality_params(ext: str, quality: Optional[int]) -> list[int]:
|
|||||||
return [int(cv2.IMWRITE_JPEG_QUALITY), quality if quality is not None else 70]
|
return [int(cv2.IMWRITE_JPEG_QUALITY), quality if quality is not None else 70]
|
||||||
|
|
||||||
if ext == "webp":
|
if ext == "webp":
|
||||||
return [int(cv2.IMWRITE_WEBP_QUALITY), quality or 60]
|
return [int(cv2.IMWRITE_WEBP_QUALITY), quality if quality is not None else 60]
|
||||||
|
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user