          """ run removal """
          print("\n[REMOVE ALIGNMENTS DATA]")  # Tidy up cli output
          del_count = 0
  
          iterator = self.alignments.get_alignments_one_image
          if self.type == "frames":
              iterator = list(item[3] for item in iterator())
  
          for item in tqdm(iterator() if self.type == "faces" else iterator,
                           desc="Processing alignments file",
 
</s> remove                          total=self.alignments.count):
 </s> add                          total=self.alignments.frames_count): </s> remove         self.file = alignments_file
        self.verbose = verbose

        self.check_file_exists()
        self.src_format = self.get_source_format()
        self.dst_format = self.get_destination_format(destination_format)

        if self.src_format == "dfl":
            self.set_destination_serializer()
 </s> add         folder, filename = self.check_file_exists(alignments_file, verbose)
        if filename == "dfl":
            self.set_dfl(verbose, destination_format) </s> remove         if self.alignments.src_format == "dfl":
            self.alignments.alignments = self.load_dfl()
            self.alignments.file = os.path.join(self.faces.folder,
                                                "alignments.json")
        self.alignments.save_alignments()
 </s> add         if self.alignments.file == "dfl":
            self.alignments.data = self.load_dfl()
            self.alignments.file = self.alignments.get_location(
                self.faces.folder,
                "alignments")
        self.alignments.save() </s> remove         print("\n[ROTATE LANDMARKS]")  # Tidy up cli output
        if self.child_process:
            print("Legacy rotated frames found. Rotating landmarks")
        self.rotate_landmarks(rotated)
        if not self.child_process:
            self.alignments.save_alignments()
 </s> add         print("\n[UPDATE LEGACY LANDMARKS]")  # Tidy up cli output

        if no_dims:
            if self.child_process:
                print("Legacy landmarks found. Adding frame dimensions...")
            self.add_dimensions(no_dims)

        if rotated:
            if self.child_process:
                print("Legacy rotated frames found. Rotating landmarks")
            self.rotate_landmarks(rotated)

        self.alignments.save()

    def add_dimensions(self, no_dims):
        """ Add width and height of original frame to alignments """
        for no_dim in tqdm(no_dims, desc="Adding Frame Dimensions"):
            if no_dim not in self.frames.items.keys():
                continue
            dims = self.frames.load_image(no_dim).shape[:2]
            self.alignments.add_dimensions(no_dim, dims) </s> remove         rotated = self.alignments.get_rotated()
        if not rotated and self.child_process:
 </s> add         no_dims = self.alignments.get_legacy_no_dims()
        rotated = self.alignments.get_legacy_rotation()
        if self.child_process and not rotated and not no_dims:
        iterator = self.alignments.yield_faces
          """ run removal """
          print("\n[REMOVE ALIGNMENTS DATA]")  # Tidy up cli output
          del_count = 0
  
        iterator = self.alignments.yield_faces
          if self.type == "frames":
              iterator = list(item[3] for item in iterator())
  
          for item in tqdm(iterator() if self.type == "faces" else iterator,
                           desc="Processing alignments file",
keep keep keep keep replace keep keep keep keep keep
 Fix convert-adjust (#531)

* Add dimensions to alignments + refactor

* Add frame_dims + funcs to DetectFaces. Add alignments lib

* Convert Adjust working

* Refactor and tidy up 
tools/lib_alignments/jobs.py