              self.rotate_landmarks(rotated)
          self.alignments.save()
  
      def rotate_landmarks(self, rotated):
          """ Rotate the landmarks """
          for rotate_item in tqdm(rotated, desc="Rotating Landmarks"):
              if rotate_item not in self.frames.keys():
                  continue
              self.alignments.rotate_existing_landmarks(rotate_item)
 
</s> remove         for rotate_item in tqdm(rotated,
                                desc="Rotating Landmarks"):
 </s> add         for rotate_item in tqdm(rotated, desc="Rotating Landmarks"): </s> remove         for rotate_item in tqdm(rotated,
                                desc="Rotating Landmarks"):
 </s> add         for rotate_item in tqdm(rotated, desc="Rotating Landmarks"): </s> remove             filename = self.frames[rotate_item]
            dims = cv2.imread(filename).shape[:2]
            self.alignments.rotate_existing_landmarks(rotate_item, dims)
 </s> add             self.alignments.rotate_existing_landmarks(rotate_item) </s> remove         print("Legacy rotated frames found. Converting...")
        self.rotate_landmarks(rotated)
 </s> add         if no_dims:
            print("Legacy landmarks found. Adding frame dimensions...")
            self.add_dimensions(no_dims)
        if rotated:
            print("Legacy rotated frames found. Converting...")
            self.rotate_landmarks(rotated) </s> remove             dims = self.frames.load_image(rotate_item).shape[:2]
            self.alignments.rotate_existing_landmarks(rotate_item, dims)
 </s> add             self.alignments.rotate_existing_landmarks(rotate_item)
    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.keys():
                continue
            filename = self.frames[no_dim]
            dims = cv2.imread(filename).shape[:2]  # pylint: disable=no-member
            self.alignments.add_dimensions(no_dim, dims)

              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.keys():
                continue
            filename = self.frames[no_dim]
            dims = cv2.imread(filename).shape[:2]  # pylint: disable=no-member
            self.alignments.add_dimensions(no_dim, dims)

      def rotate_landmarks(self, rotated):
          """ Rotate the landmarks """
          for rotate_item in tqdm(rotated, desc="Rotating Landmarks"):
              if rotate_item not in self.frames.keys():
                  continue
              self.alignments.rotate_existing_landmarks(rotate_item)
keep keep add keep 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 
scripts/convert.py