classes/Tools/Storage/StorageImageEditor.php
public function resize($max_w, $max_h, $crop = false) {
        return $this->imageEditor->resize($max_w, $max_h, $crop);
    }
public function resize($max_w, $max_h, $crop = false) {
        return $this->imageEditor->resize($max_w, $max_h, $crop);
    }
public function resize ( $ max_w , $ max_h , $ crop = false ) { return $ this -> imageEditor -> resize ( $ max_w , $ max_h , $ crop ) ; }
Resizes current image.

At minimum, either a height or width must be provided.
If one of the two is set to null, the resize will
maintain aspect ratio according to the provided dimension.

@since 3.5.0

@param  int|null $max_w Image width.
@param  int|null $max_h Image height.
@param  bool $crop
@return bool|WP_Error
Resizes current image .