Skip to content

Commit 1521ed2

Browse files
authored
feat(nutjs): avoid compression to use png format instead (#599)
1 parent 1a1b2f1 commit 1521ed2

File tree

1 file changed

+1
-1
lines changed
  • packages/ui-tars/operators/nut-js/src

1 file changed

+1
-1
lines changed

packages/ui-tars/operators/nut-js/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class NutJSOperator extends Operator {
7878
w: width,
7979
h: height,
8080
})
81-
.getBuffer('image/jpeg', { quality: 75 });
81+
.getBuffer('image/png'); // Use png format to avoid compression
8282

8383
const output = {
8484
base64: physicalScreenImage.toString('base64'),

0 commit comments

Comments
 (0)