Trim::setImage
Set target image and output file path
Description
public void Trim::setImage( string $org_image, string $cnv_path )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$org_image | string | Target image path | |
$cnv_path | string | The location of saving converted image |
Example
Controller
$trim = $this->getClass('Tool/RSS', 'https://example.com/feed');
$trim->setImage('path/to/image.jpg', 'path/to/converted.jpg');