Skip to content

jpg

JPEGSaveOptions

Bases: Photoshop

Options for saving a document in JPEG format.

Source code in photoshop/api/save_options/jpg.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
class JPEGSaveOptions(Photoshop):
    """Options for saving a document in JPEG format."""

    object_name = "JPEGSaveOptions"

    def __init__(self, quality=5, embedColorProfile=True, matte=MatteType.NoMatte):
        super().__init__()
        self.quality = quality
        self.embedColorProfile = embedColorProfile
        self.matte = matte

    @property
    def quality(self):
        return self.app.quality

    @quality.setter
    def quality(self, value):
        self.app.quality = value

    @property
    def formatOptions(self):
        """The download format to use."""
        return self.app.formatOptions

    @formatOptions.setter
    def formatOptions(self, value):
        self.app.formatOptions = value

    @property
    def embedColorProfile(self):
        return self.app.embedColorProfile

    @embedColorProfile.setter
    def embedColorProfile(self, value):
        self.app.embedColorProfile = value

    @property
    def matte(self):
        """The color to use to fill anti-aliased edges adjacent to
        transparent"""
        return self.app.matte

    @matte.setter
    def matte(self, value):
        self.app.matte = value

    @property
    def scans(self):
        return self.app.scans

    @scans.setter
    def scans(self, value):
        self.app.scans = value

formatOptions property writable

The download format to use.

matte property writable

The color to use to fill anti-aliased edges adjacent to transparent


Last update: 2024-03-05
Created: 2024-03-05