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

# Module imagizer

source code

General library used by selector and generator. It handles images, progress bars and configuration file.

Classes | [hide private]
| ModelProcessSelected Implemantation MVC de la procedure ProcessSelected
| ModelCopySelected Implemantation MVC de la procedure CopySelected
| ModelRangeTout Implemantation MVC de la procedure RangeTout moves all the JPEG files to a directory named from their day and with the name according to the time
| Controler Implémentation du contrôleur de la vue utilisant la console
| ControlerX Implémentation du contrôleur.
| View Implémentation de la vue.
| ViewX Implementation of the view as a splashscren
| photo class photo that does all the operations available on photos
| signature
| parser this class searches all the jpeg files

Functions | [hide private]
RangeTout(repository) moves all the JPEG files to a directory named from their day and with the name according to the time This is a MVC implementation | source code
ProcessSelected(SelectedFiles) This procedure uses the MVC implementation of processSelected It makes a copy of all selected photos and scales them copy all the selected files to "selected" subdirectory, 20 per page | source code
CopySelected(SelectedFiles) This procedure makes a copy of all selected photos and scales them copy all the selected files to "selected" subdirectory | source code
makedir(filen) creates the tree structure for the file | source code
mkdir(filename) create an empty directory with the given rights | source code
FindFile(RootDir) returns a list of the files with the given suffix in the given dir files=os.system('find "%s" -iname "*.%s"'%(RootDir,suffix)).readlines() | source code
ScaleImage(filename, filigrane=None) common processing for one image : create a subfolder "scaled" and "thumb" : | source code
latin1_to_ascii(unicrap) This takes a UNICODE string and replaces Latin-1 characters with something equivalent in 7-bit ASCII. | source code
SmartSize(size) print the size of files in a pretty way | source code
recursive_delete(dirname) | source code

Variables | [hide private]
| gtkInterpolation = ``[`<enum GDK_INTERP_NEAREST of type GdkInterp`...``
| installdir = ``'``/usr/lib/python2.5/site-packages/imagizer``'``
| MaxJPEGMem = `100000`
| exiftran = ``'``JPEGMEM=100000 /usr/lib/python2.5/site-packages/im``...``
| gimpexe = ``'``gimp-remote` `'``
| ConfFile = ``[``'``/etc/imagizer.conf``'``,` `'``/home/jerome/.imagizer``'``,` `'``.``...``
| unifiedglade = ``'``/usr/lib/python2.5/site-packages/imagizer/sele``...``
| config = `Config()`
| imageCache = `{}`

Function Details | [hide private]

### latin1_to_ascii(unicrap) | source code
This takes a UNICODE string and replaces Latin-1 characters with something equivalent in 7-bit ASCII. It returns a plain ASCII string. This function makes a best effort to convert Latin-1 characters into ASCII equivalents. It does not just strip out the Latin-1 characters. All characters in the standard 7-bit ASCII range are preserved. In the 8th bit range all the Latin-1 accented letters are converted to unaccented equivalents. Most symbol characters are converted to something meaningful. Anything not converted is deleted.

Variables Details | [hide private]

  ### gtkInterpolation Value:
      [<enum GDK_INTERP_NEAREST of type GdkInterpType>,
       <enum GDK_INTERP_TILES of type GdkInterpType>,
       <enum GDK_INTERP_BILINEAR of type GdkInterpType>,
       <enum GDK_INTERP_HYPER of type GdkInterpType>]

  ### exiftran Value:
      'JPEGMEM=100000 /usr/lib/python2.5/site-packages/imagizer/exiftran  '

  ### ConfFile Value:
      ['/etc/imagizer.conf', '/home/jerome/.imagizer', '.imagizer']

  ### unifiedglade Value:
      '/usr/lib/python2.5/site-packages/imagizer/selector.glade'