Skip to content

Commit

Permalink
Update _perf.py
Browse files Browse the repository at this point in the history
Reduce img.thumbnail((200, 200))
  • Loading branch information
dhiravidamani238 authored Apr 25, 2023
1 parent 08cd020 commit f1bf0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidevice/_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def iter_gpu(d: BaseDevice) -> Iterator[Any]:
def iter_screenshot(d: BaseDevice) -> Iterator[Tuple[DataType, dict]]:
for img in d.iter_screenshot():
_time = time.time()
img.thumbnail((500, 500)) # 缩小图片已方便保存
img.thumbnail((200, 200)) # 缩小图片已方便保存

buffered = BytesIO()
img.save(buffered, format="JPEG")
Expand Down

0 comments on commit f1bf0ad

Please sign in to comment.