          elif self.src_format in extensions.keys():
              dst_fmt = extensions[self.src_format]
          else:
              print("{} is not a supported serializer. "
                    "Exiting".format(self.src_format))
              exit(0)
  
          if self.verbose:
              print("Destination format set to {}".format(dst_fmt))
  
 
</s> remove         elif self.src_format in extensions.keys():
            dst_fmt = extensions[self.src_format]
 </s> add         elif file_ext in extensions.keys():
            dst_fmt = extensions[file_ext] </s> remove         elif self.src_format == "dfl":
 </s> add         elif self.file == "dfl": </s> remove         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
 </s> add         self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.ext) </s> remove             return
        if not os.path.isfile(self.file):
 </s> add         elif not os.path.isfile(alignments_file):
                  "Exiting".format(file_ext))
          elif self.src_format in extensions.keys():
              dst_fmt = extensions[self.src_format]
          else:
              print("{} is not a supported serializer. "
                  "Exiting".format(file_ext))
              exit(0)
  
          if self.verbose:
              print("Destination format set to {}".format(dst_fmt))
  
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/media.py