Skip to main content

Trim::resizeForce

Resize the image forcely

Description

public void Trim::resizeForce( number $w, number $h )

Arguments

NameData typeDefaultRemarks
$wnumberConverted image width
$hnumberConverted image height

Example

Controller
$trim = $this->getClass('Tool/RSS', 'https://example.com/feed');
$trim->setImage('path/to/image.jpg', 'path/to/converted.jpg');

$trim->resizeForce(300, 300);