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