Package invocations :: Package cu2 :: Module CreateJpgThumbs :: Class ThumbCalc
[hide private]

Class ThumbCalc

source code


Instance Methods [hide private]
 
pooling(self, inputs)
Create a pool using all CPUs and farm out the calculations.
source code
 
calculate(self, args)
Calculate JPGs.
source code
 
createThumbnailImage(self, origJpg, thumbPath)
Creates a thumbnail from a JPEG compressed image.
source code

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

Class Variables [hide private]
  numprocesses = 1
  maxChunkSize = 100
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

pooling(self, inputs)

source code 

Create a pool using all CPUs and farm out the calculations.

Parameters:
  • inputs (list(tuple(str))) - List containing argument tuples for JPG calculation.

calculate(self, args)

source code 

Calculate JPGs.

Parameters:
  • args (args) - Arguments for createThumbnailImage.

createThumbnailImage(self, origJpg, thumbPath)

source code 

Creates a thumbnail from a JPEG compressed image.

Parameters:
  • origJpg (str) - Full path to the JPG file.
  • thumbPath (str) - Path to thumbnail directory.