image quality

This commit is contained in:
zombieyang
2025-04-28 21:24:51 +08:00
parent 4010cd6527
commit 900ef4175b
9 changed files with 63 additions and 33 deletions
+3 -2
View File
@@ -17,7 +17,7 @@ class ProtocolPhotoshop:
cls.sdpppServer = sdpppServer
@classmethod
async def get_image(cls, instance_id, document_identify, layer_identify, boundary, max_wh=60606):
async def get_image(cls, instance_id, document_identify, layer_identify, boundary, max_wh=60606, quality=100.0):
ppp_instance = cls.sdpppServer.ppp_instances[instance_id]
result = await protocol_call(ppp_instance, 'B_photoshop', data={
'action': 'getImage',
@@ -25,7 +25,8 @@ class ProtocolPhotoshop:
'document_identify': document_identify,
'layer_identify': layer_identify,
'boundary': boundary,
'max_wh': max_wh
'max_wh': max_wh,
'quality': quality
}
})
return result