PyUp Safety actively tracks 232,000 Python packages for vulnerabilities and notifies you when to upgrade.
Added - Cropper class now available from Python API. - Local multi-version testing for Python now available with `tox`. - Extra regressions tests to defend against image warp and cropping outside the regions of interest. - Support for Python 3.8 Bugfixes - Specify encoding in `setup.py`, which was causing some errors on Windows. Deprecated - Support for padding argument — this is now solely handled by the `face_percent` parameter, and enforces the aspect ratio between `width` and `height`. - Support for Python 2.7
Changes * Autocrop now prints the filename of images where face detection failed * Internal refactoring and more tests
Changes * Add `-r`, `--reject` flag to specify directory where the images that autocrop *couldn't* find a face in are directed to. * Instead of having the target files copied then cropped, they are instead cropped and saved to their respective target folder.
Changes * Added support for padding (`padLeft`, etc.) in the CLI. Bugfix * Fixed warp on crop for `-w` and `-h` values
Changes * Add `-o`, `--output` flag to specify directory where cropped images are to be dumped. - Error out if output folder set to current directory, i.e. `-o .` - If directory doesn't exist yet, create it. - If no face can be found in an image in batch, it is still copied over to `-o` folder. - If no output folder is added, ask for confirmation ([Y]/n), and destructively crop images in-place. * Use `-i`, `--input` flags as synonyms for `-p` or `--path`: symmetrical in meaning to "output". - Is now standard nomenclature in documentation. * `--input` or `--path` flag is now optional. - Standard behaviour without input folder is to non-recursively process all images in immediate folder, i.e. `-p .` as currently implemented. Breaks * Removed all mentions of the hard-coded 'bkp' and 'crop' folders * Calling autocrop without specifying an input path, i.e. `autocrop` does not look for the 'images' folder anymore.