diff --git a/server/src/wled_controller/api/routes/_test_helpers.py b/server/src/wled_controller/api/routes/_test_helpers.py index 2803e03..6a61879 100644 --- a/server/src/wled_controller/api/routes/_test_helpers.py +++ b/server/src/wled_controller/api/routes/_test_helpers.py @@ -188,12 +188,13 @@ async def stream_capture_test( tc = total_capture_time fps = fc / elapsed if elapsed > 0 else 0 avg_ms = (tc / fc * 1000) if fc > 0 else 0 - w, h = final_frame.size # Apply PP filters to final images if pp_filters: final_frame = _apply_pp_filters(final_frame, pp_filters) + w, h = final_frame.size + full_uri = _encode_jpeg(final_frame, FINAL_JPEG_QUALITY) thumb = _make_thumbnail(final_frame, FINAL_THUMBNAIL_WIDTH) thumb_uri = _encode_jpeg(thumb, 85) diff --git a/server/src/wled_controller/api/routes/postprocessing.py b/server/src/wled_controller/api/routes/postprocessing.py index e5af21e..257f526 100644 --- a/server/src/wled_controller/api/routes/postprocessing.py +++ b/server/src/wled_controller/api/routes/postprocessing.py @@ -298,6 +298,7 @@ async def test_pp_template( actual_fps = frame_count / actual_duration if actual_duration > 0 else 0 avg_capture_time_ms = (total_capture_time / frame_count * 1000) if frame_count > 0 else 0 width, height = pil_image.size + thumb_w, thumb_h = thumbnail.size return TemplateTestResponse( full_capture=CaptureImage( @@ -305,8 +306,8 @@ async def test_pp_template( full_image=full_data_uri, width=width, height=height, - thumbnail_width=thumbnail_width, - thumbnail_height=thumbnail_height, + thumbnail_width=thumb_w, + thumbnail_height=thumb_h, ), border_extraction=None, performance=PerformanceMetrics(