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

Class photo

source code

object --+
         |
        photo

class photo that does all the operations available on photos

Instance Methods [hide private]
 
__init__(self, filename)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
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, strThumbFile, 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
 
readExif(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
 
renameFile(self, newname)
rename the current instance of photo: -Move the file -update the cache -change the name and other attributes of the instance -change the exif metadata.
source code
 
storeOriginalName(self, originalName)
Save the original name of the file into the Exif.Photo.UserComment tag.
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

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

Class Variables [hide private]
  GaussianKernel = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

RemoveFromCache(self)

source code 

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

storeOriginalName(self, originalName)

source code 

Save the original name of the file into the Exif.Photo.UserComment tag. This tag is usually not used, people prefer the JPEG tag for entiteling images.

Parameters:
  • originalName (python string) - name of the file before it was processed by selector

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.