Beispiel #1
0
    def __init__(self, file_path, dir_path):
        print("JPEG CONSTRUCTOR")
        FileModule.__init__(self, file_path, dir_path)
        self.mime_type = "image/jpeg"

        self.load_exif()
        self.generate_thumbnail()
Beispiel #2
0
    def __init__(self, file_path, dir_path):
        FileModule.__init__(self, file_path, dir_path)
        self.mime_type = "application/pdf"

        self.generate_thumbnail()
Beispiel #3
0
    def __init__(self, file_path, dir_path):
        FileModule.__init__(self, file_path, dir_path)
        self.mime_type = "image/bmp"

        self.generate_thumbnail()
Beispiel #4
0
 def __init__(self, file_path):
     FileModule.__init__(self, self.convert_to_jpg(file_path))
     self.mime_type = "image/x-canon-cr2"
     self.load_exif()
     self.generate_thumbnail()
Beispiel #5
0
    def __init__(self, file_path, dir_path):
        FileModule.__init__(self, file_path, dir_path)
        self.mime_type = "text/plain"

        self.generate_thumbnail()
Beispiel #6
0
    def __init__(self, file_path, dir_path):
        FileModule.__init__(self, file_path, dir_path)
        self.mime_type = "video/mp4"

        self.generate_thumbnail()
Beispiel #7
0
    def __init__(self, file_path, dir_path):
        FileModule.__init__(self, file_path, dir_path)
        self.mime_type = "audio/x-wav"

        self.generate_thumbnail()