mlx.data.Buffer.image_resize

mlx.data.Buffer.image_resize#

Buffer.image_resize(self: mlx.data._c.Buffer, key: str, w: int, h: int, output_key: str = '') mlx.data._c.Buffer#

Resize the image to the requested size.

Parameters:
  • key (str) – The sample key that contains the array we are operating on.

  • w (int) – The width of the result.

  • h (int) – The height of the result.

  • output_key (str) – If it is not empty then write the result to this key instead of overwriting key. (default: ‘’)