Public Member Functions | |
def | __init__ |
def | get_val_str |
def | str_data |
Public Attributes | |
Grayscale | |
Interlace | |
Optimize | |
Quality | |
SamplingFactor |
Stores settings of a JPG file to generate.
Definition at line 7 of file imagesettings.py.
def imgcrush.imagesettings.JPGSettings.__init__ | ( | self, | ||
quality, | ||||
interlace, | ||||
optimize, | ||||
samplingfactor, | ||||
grayscale | ||||
) |
Constructor. Data members: Quality : Quality level of jpg compression - higher means higher quality and filesize. Valid values : int 0-100 Interlace : Is this image interlaced (progressive) ? Optimize : Is this image compressed with optimizations (usually results in smaller filesize) ? SamplingFactor : Subsampling factor used on this image. Grayscale : Is this image grayscale?
Definition at line 10 of file imagesettings.py.
def imgcrush.imagesettings.JPGSettings.get_val_str | ( | self, | ||
str | ||||
) |
def imgcrush.imagesettings.JPGSettings.str_data | ( | self | ) |