Introduction
Providing some functions for processing image (especially image crop)
Methods
Trim::setImage
Set target image and output file path
Trim::resize
Set target image and output file path
Trim::resizeFill
Resize the image with keeping ratio and filling white/black color (Like object-fit: contain)
Trim::resizeForce
Resize the image forcely
Trim::resizeTrim
Resize the image with keeping ratio and tirmming overwrapped (Like object-fit: cover)
Trim::create
Save the image to specified location
Trim::view
Display converted image