Requirement:
Enhance the videoscreenshot.ps1 script with a command-line parameter to invoke it in a cropping-only mode. Additionally, the script should skip screenshots that have already been cropped. The cropped image will have the same name as the original but stored in a Cropped Images folder, allowing for name comparison.
Details:
Add a new parameter, e.g., -CropOnly, to the script that triggers cropping without performing video processing or screenshot capture.
Implement a check to verify if a screenshot has already been cropped. If a cropped version exists in the Cropped Images folder, skip the cropping for that image.
The script should compare filenames to determine if a cropped image already exists (e.g., "Screenshot_YYYYMMDDHHMMSS.png" and "Screenshot_YYYYMMDDHHMMSS.png" in the Cropped Images folder).
Ensure that the rest of the script's behaviour remains unchanged when the parameter is not used.
Acceptance Criteria:
The -CropOnly parameter is added to the script and works as expected.
Cropping is skipped for images with matching filenames in the Cropped Images folder.
A log is generated that indicates which screenshots were skipped due to being previously cropped.
Requirement: Enhance the
videoscreenshot.ps1
script with a command-line parameter to invoke it in a cropping-only mode. Additionally, the script should skip screenshots that have already been cropped. The cropped image will have the same name as the original but stored in aCropped Images
folder, allowing for name comparison.Details:
-CropOnly
, to the script that triggers cropping without performing video processing or screenshot capture.Cropped Images
folder, skip the cropping for that image.Cropped Images
folder).Acceptance Criteria:
-CropOnly
parameter is added to the script and works as expected.Cropped Images
folder.