diff --git a/autocrop/__version__.py b/autocrop/__version__.py index 0c54d77..f2bd583 100644 --- a/autocrop/__version__.py +++ b/autocrop/__version__.py @@ -1,4 +1,4 @@ __title__ = "autocrop" __description__ = "Automatically crops faces from batches of pictures" __author__ = "François Leblanc" -__version__ = "1.0.2" +__version__ = "1.1.0" diff --git a/autocrop/cli.py b/autocrop/cli.py index 7e250b9..aa441d1 100644 --- a/autocrop/cli.py +++ b/autocrop/cli.py @@ -22,7 +22,7 @@ def output(input_filename, output_filename, image): cropped image data.""" if input_filename != output_filename: # Move the file to the output directory - shutil.move(input_filename, output_filename) + shutil.copy(input_filename, output_filename) # Encode the image as an in-memory PNG img_new = Image.fromarray(image) # Write the new image (converting the format to match the output @@ -34,7 +34,7 @@ def reject(input_filename, reject_filename): """Move the input file to the reject location.""" if input_filename != reject_filename: # Move the file to the reject directory - shutil.move(input_filename, reject_filename) + shutil.copy(input_filename, reject_filename) def main(