  
          if self.verbose:
              print("Destination format set to {}".format(dst_fmt))
  
          return dst_fmt
  
      def set_destination_serializer(self):
          """ set the destination serializer """
          self.serializer = Serializer.get_serializer(self.dst_format)
  
      def load(self):
          """ Read the alignments data from the correct format """
          print("Loading alignments from {}".format(self.file))
          with open(self.file, self.serializer.roptions) as align:
              alignments = self.serializer.unmarshal(align.read())
          return alignments
  
      def reload(self):
          """ Read the alignments data from the correct format """
          print("Reloading alignments from {}".format(self.file))
          with open(self.file, self.serializer.roptions) as align:
 
</s> remove     def reload(self):
        """ Read the alignments data from the correct format """
        print("Reloading alignments from {}".format(self.file))
        with open(self.file, self.serializer.roptions) as align:
            self.alignments = self.serializer.unmarshal(align.read())

    def save_alignments(self):
 </s> add     def save(self): </s> remove             with open(self.location, self.serializer.roptions) as align:
 </s> add             with open(self.file, self.serializer.roptions) as align: </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) </s> remove         skip_faces = None
        if self.is_extract:
            skip_existing = bool(hasattr(self.args, 'skip_existing')
                                 and self.args.skip_existing)
            skip_faces = bool(hasattr(self.args, 'skip_faces')
                              and self.args.skip_faces)

            if not self.have_alignments_file:
                if skip_existing or skip_faces:
                    print("Skip Existing/Skip Faces selected, but no "
                          "alignments file found!")
                return data
            if not skip_existing and not skip_faces:
                return data
 </s> add         if not self.is_extract:
            data = super().load()
            return data

        skip_existing = bool(hasattr(self.args, 'skip_existing')
                             and self.args.skip_existing)
        skip_faces = bool(hasattr(self.args, 'skip_faces')
                          and self.args.skip_faces)

        if not skip_existing and not skip_faces:
            return data

        if not self.have_alignments_file and (skip_existing or skip_faces):
            print("Skip Existing/Skip Faces selected, but no alignments file "
                  "found!")
            return data </s> remove                   "Exiting".format(self.src_format))
 </s> add                   "Exiting".format(file_ext))
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
  
          if self.verbose:
              print("Destination format set to {}".format(dst_fmt))
  
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext)
  
      def reload(self):
          """ Read the alignments data from the correct format """
          print("Reloading alignments from {}".format(self.file))
          with open(self.file, self.serializer.roptions) as align:
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace 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/media.py