Skip to main content

Trim::setImage

Set target image and output file path

Description

public void Trim::setImage( string $org_image, string $cnv_path )

Arguments

NameData typeDefaultRemarks
$org_imagestringTarget image path
$cnv_pathstringThe 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');