[source]

Image Resizer#

Image Resizer fits (scales and crops) images in a dataset to a user-specified width and height.

Note: The GD extension is required to use this transformer.

Interfaces: Transformer

Data Type Compatibility: Image

Parameters#

# Param Default Type Description
1 width 32 int The width of the transformed image.
2 heights 32 int The height of the transformed image.

Additional Methods#

This transformer does not have any additional methods.

Example#

use Rubix\ML\Transformers\ImageResizer;

$transformer = new ImageResizer(28, 28, 'gd');