Package epsilon :: Module c_epsilon :: Class Epsilon
[hide private]
[frames] | no frames]

Class Epsilon

object --+
         |
        Epsilon

Epsilon thumbnail generator.

Epsilon produces freedesktop.org-compatible thumbnails, it can use Imlib2, EPEG and external plugins. Imlib2 is the general purpose image loader, EPEG is a super-fast JPEG, external plugins can provide any thumbnail support, like xine to use videos.

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__repr__(...)
repr(x)
 
__str__(...)
str(x)
int
aspect_get(...)
 
aspect_set(...)
Specify thumbnail aspect, either EPSILON_THUMB_KEEP_ASPECT, EPSILON_THUMB_IGNORE_ASPECT or EPSILON_THUMB_CROP.
 
crop_align_set(...)
Specify thumbnail crop alignment.
bool
exists(...)
Check if thumbnail exists.
str
file_get(...)
int
format_get(...)
 
format_set(...)
Specify thumbnail format, either EPSILON_THUMB_FDO or EPSILON_THUMB_JPEG.
 
generate(...)
Force thumbnail generation.
str or None
key_get(...)
 
key_set(...)
Specify key inside file to use.
tuple of int
resolution_get(...)
 
resolution_set(...)
Specify resolution to render thumbnail before scaling.
 
thumb_custom_size_set(...)
Specify a custom thumbnail size.
str or None
thumb_file_get(...)
int
thumb_size_get(...)
 
thumb_size_set(...)
Specify thumbnail size, either EPSILON_THUMB_NORMAL (128x128) or EPSILON_THUMB_LARGE (256x256).

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]
  aspect
  file
  format
  key
  resolution
  thumb_file
  thumb_size

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(...)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(...)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

generate(...)

 

Force thumbnail generation.

Note: this will overwrite existing thumbnail.

key_set(...)

 

Specify key inside file to use.

So far, this is just used by Edje to choose which group to use.

resolution_set(...)

 

Specify resolution to render thumbnail before scaling.

So far, this is just used to render Edje objects.

thumb_custom_size_set(...)

 

Specify a custom thumbnail size.

If one of w or h is negative, it will be calculated to be the required value to make the other possible, keeping aspect ratio.