def cut_bottom(self, file_name): pixels = self.__calculate_fixed_bottom() img = Cropper.image(file_name) img2 = Cropper.crop_bottom(img, self.convert_size_ratio(pixels)) img2.save(file_name)
def cut_bottom(self, file_name): borders = self.window.get_fixed_border() pixels = borders["bottom"] img = Cropper.image(file_name) img2 = Cropper.crop_bottom(img, self.convert_size_ratio(pixels)) img2.save(file_name)