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

Class Exiftran

source code

object --+
         |
        Exiftran

This is static class implementing libexiftran in a more pythonic way

Instance Methods [hide private]

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

Static Methods [hide private]
 
_exiftranThread(action, filename)
actual exiftran launcher
source code
 
rotate90(filename)
rotate the given file by 90 degrees clockwise
source code
 
rotate180(filename)
rotate the given file by 180 degrees
source code
 
rotate270(filename)
rotate the given file by 90 degrees counter-clockwise (270deg clockwise)
source code
 
autorotate(filename)
auto rotate the given file
source code
 
getSemaphoreValue()
return the value of the semaphore, either 0 or 1
source code
Class Variables [hide private]
  semaphore = threading.Semaphore()
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_exiftranThread(action, filename)
Static Method

source code 

actual exiftran launcher

Parameters:
  • action (integer) - 0 for autorotate, 1 for 180 deg, 2 for 270 deg and 9 for 90 deg reotation clockwise
  • filename (string) - name of the jpeg file to process

rotate90(filename)
Static Method

source code 

rotate the given file by 90 degrees clockwise

Parameters:
  • filename (python string) - name of the JPEG file to rotate

rotate180(filename)
Static Method

source code 

rotate the given file by 180 degrees

Parameters:
  • filename (python string) - name of the JPEG file to rotate

rotate270(filename)
Static Method

source code 

rotate the given file by 90 degrees counter-clockwise (270deg clockwise)

Parameters:
  • filename (python string) - name of the JPEG file to rotate

autorotate(filename)
Static Method

source code 

auto rotate the given file

Parameters:
  • filename (python string) - name of the JPEG file to rotate