imgcrush.imagesettings.JPGSettings Class Reference

List of all members.

Public Member Functions

def __init__
def get_val_str
def str_data

Public Attributes

 Grayscale
 Interlace
 Optimize
 Quality
 SamplingFactor


Detailed Description

Stores settings of a JPG file to generate.

Definition at line 7 of file imagesettings.py.


Member Function Documentation

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 
)

Returns data member requested by the input string.

Definition at line 35 of file imagesettings.py.

def imgcrush.imagesettings.JPGSettings.str_data (   self  ) 

Returns a string containing jpg settings data.

Definition at line 28 of file imagesettings.py.


The documentation for this class was generated from the following file:

Generated on Sun Oct 18 14:02:29 2009 for IMGCrush by  doxygen 1.5.8