      """ Reformat Alignment file """
      def __init__(self, alignments, arguments):
          self.verbose = arguments.verbose
          self.alignments = alignments
          if self.alignments.src_format == "dfl":
              self.faces = Faces(arguments.faces_dir,
                                 self.verbose,
                                 dfl=True)
  
      def process(self):
 
</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         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 class Rotate():
    """ Rotating landmarks and bounding boxes on legacy alignments
 </s> add class Legacy():
    """ Update legacy alignments:

        - Add frame dimensions
        - Rotate landmarks and bounding boxes on legacy alignments </s> remove 
        self.serializer = Serializer.get_serializer_from_ext(
            self.src_format)
        self.alignments = self.load()
        self.count = len(self.alignments)

        self.set_destination_serializer()
 </s> add         super().__init__(folder, filename=filename, verbose=verbose)
        self.set_destination_format(destination_format) </s> remove     def get_source_format(self):
        """ Get the source alignments format """
        if self.file.lower() == "dfl":
            return "dfl"
        return os.path.splitext(self.file)[1].lower()
 </s> add     def set_dfl(self, verbose, destination_format):
        """ Set the alignments for dfl alignments """
        self.verbose = verbose
        self.file = "dfl"
        self.set_destination_format(destination_format)
        if self.alignments.file == "dfl":
      """ Reformat Alignment file """
      def __init__(self, alignments, arguments):
          self.verbose = arguments.verbose
          self.alignments = alignments
        if self.alignments.file == "dfl":
              self.faces = Faces(arguments.faces_dir,
                                 self.verbose,
                                 dfl=True)
  
      def process(self):
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