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


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


use Rubix\ML\Transformers\ImageResizer;

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

Additional Methods#

This transformer does not have any additional methods.