BP_GOPP_Image_Editor_GS::resize( int|null $max_w, int|null $max_h, bool $crop = false )

Resizes current image. Unsupported.

Description

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.

Parameters

$max_w

(int|null) (Required) Image width.

$max_h

(int|null) (Required) Image height.

$crop

(bool) (Optional)

Default value: false

Return

(WP_Error)

Source

File: bp-document/classes/class-bp-gopp-image-editor-gs.php

	public function resize( $max_w, $max_h, $crop = false ) {
		return new WP_Error( 'image_resize_error', __( 'Unsupported operation.', 'buddyboss' ) );
	}

Changelog

Changelog
Version Description
BuddyBoss 1.4.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.