Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed May 18, 2023
1 parent 9e2f9a9 commit 10a7867
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frigate/events/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ def _write_images(

# create thumbnail with max height of 175 and save
width = int(175 * img_frame.shape[1] / img_frame.shape[0])
thumb = cv2.resize(
img_frame, dsize=(width, 175), interpolation=cv2.INTER_AREA
)
thumb = cv2.resize(img_frame, dsize=(width, 175), interpolation=cv2.INTER_AREA)
ret, jpg = cv2.imencode(".jpg", thumb)
return base64.b64encode(jpg.tobytes()).decode("utf-8")

0 comments on commit 10a7867

Please sign in to comment.