def compress_tiff_files(list_of_file_paths, destination_directory, delete_source=False):
     """
     This method deals with compression of TIFF images. ZipCompression algorithm is used from the PythonMagick
     library.
     :param list_of_file_paths: ['C:\Users\gpatil\Desktop\image1.tiff', 'C:\Users\gpatilSample\image2.tiff']
     :param destination_directory: 'C:\Users\gpatil\Desktop\image1.png'
     :param delete_source: If the delete_source param is set to True then the original files will get
            erased after they are compressed
     :return: returns a dictionary containing the invalid file paths passed to the method (if any) and a result_code
              that has the value 0 or 1 based on the success and failure of the operation
     """
     result_dictionary = {}
     invalid_files_list = []
     for paths in list_of_file_paths:
         if os.path.exists(paths) is False:
             invalid_files_list.append(paths)
             continue
         image_object = Image(paths)
         image_object.compressType(CompressionType.ZipCompression)
         file_name = os.path.basename(paths)
         print "Compressing Image" + str(file_name) + " to TIFF"
         image_object.write(os.path.join(destination_directory, file_name))
         print "Compression Complete"
     if not invalid_files_list:
         result_dictionary.update({"result_code": 0, "invalid_file_paths": "None"})
     else:
         csv_list_of_invalid_file_paths = ",".join(invalid_files_list)
         result_dictionary.update({"result_code": -1, "invalid_file_paths": csv_list_of_invalid_file_paths})
         print "Following files at paths could not be compressed"
         for files in invalid_files_list:
             print files
     if delete_source is True:
         for files in list_of_file_paths:
             if os.path.exists(paths) is False:
                 invalid_files_list.append(paths)
                 continue
             os.remove(files)
             print "Legacy files deleted successfully"
     return result_dictionary