Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add BoxImageTransform to pad or crop images instead of resizing #453
What changes were proposed in this pull request?
Add an alternative fallback to resizing images, one that keeps aspect ratio and size of objects in images by padding and cropping them appropriately from the center.
Also fix PipelineImageTransform not passing Random to transforms
How was this patch tested?
Unit tests including a new one pass. Also performed visual inspection of results.