We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93b3421 commit 4bf5107Copy full SHA for 4bf5107
photoshop/api/save_options/png.py
@@ -54,6 +54,15 @@ def dither(self):
54
def dither(self, value):
55
self.app.dither = value
56
57
+ def as_javascript(self) -> str:
58
+ """Is patch function to make as javascript."""
59
+ return f"""
60
+ var opts;
61
+ opts = new ExportOptionsSaveForWeb();
62
+ opts.PNG8 = {str(self.PNG8).lower()};
63
+ opts.quality = {self.quality};
64
+ """
65
+
66
67
class PNGSaveOptions(Photoshop):
68
object_name = "PNGSaveOptions"
0 commit comments