Package imagizer :: Module imagizer :: Class photo
[hide private]
[frames] | no frames]

Class photo

source code

class photo that does all the operations available on photos

Instance Methods [hide private]
 
__init__(self, filename) source code
 
LoadPIL(self)
Load the image
source code
 
larg(self)
width-height of a jpeg file
source code
 
taille(self)
width and height of a jpeg file
source code
 
SaveThumb(self, Thumbname, Size=160, Interpolation=1, Quality=75, Progressive=False, Optimize=False, ExifExtraction=False)
save a thumbnail of the given name, with the given size and the interpolation methode (quality) resampling filters : NONE = 0 NEAREST = 0 ANTIALIAS = 1 # 3-lobed lanczos LINEAR = BILINEAR = 2 CUBIC = BICUBIC = 3
source code
 
Rotate(self, angle=0)
does a looseless rotation of the given jpeg file
source code
 
RemoveFromCache(self)
remove the curent image from the Cache ....
source code
 
Trash(self)
Send the file to the trash folder
source code
 
exif(self)
return exif data + title from the photo
source code
 
has_title(self)
return true if the image is entitled
source code
 
show(self, Xsize=600, Ysize=600)
return a pixbuf to shows the image in a Gtk window
source code
 
name(self, titre)
write the title of the photo inside the description field, in the JPEG header
source code
 
autorotate(self)
does autorotate the image according to the EXIF tag
source code
 
ContrastMask(self, outfile)
Ceci est un filtre de debouchage de photographies, aussi appelé masque de contraste, il permet de rattrapper une photo trop contrasté, un contre jour, ...
source code
Method Details [hide private]

RemoveFromCache(self)

source code 

remove the curent image from the Cache .... for various reasons

ContrastMask(self, outfile)

source code 

Ceci est un filtre de debouchage de photographies, aussi appelé masque de contraste, il permet de rattrapper une photo trop contrasté, un contre jour, ... Écrit par Jérôme Kieffer, avec l'aide de la liste python@aful, en particulier A. Fayolles et F. Mantegazza avril 2006 necessite numpy et PIL.