import numpy as np


def resize(image, scale):
    if scale >= 1.0:
        return

    # Determine width and height of the result array
    max_x = int(scale * len(image))
    max_y = int(scale * len(image[0]))
    # Initialize result array
    sized_image = np.ndarray(shape=(max_x, max_y, 3), dtype=np.uint8)

    # Copy pixels from old to new array
    rec_scale = 1 / scale
    for i in range(max_x):
        old_x = int(rec_scale * i)
        for k in range(max_y):
            old_y = int(rec_scale * k + (old_x % scale))
            sized_image[i][k] = image[old_x][old_y][0:3]

    # Return result array
    return sized_image

b9c0ffcf49b9dced3b463f839ddd3a894f25b068
<mask token>

<mask token>


def resize(image, scale):
    if scale >= 1.0:
        return
    max_x = int(scale * len(image))
    max_y = int(scale * len(image[0]))
    sized_image = np.ndarray(shape=(max_x, max_y, 3), dtype=np.uint8)
    rec_scale = 1 / scale
    for i in range(max_x):
        old_x = int(rec_scale * i)
        for k in range(max_y):
            old_y = int(rec_scale * k + old_x % scale)
            sized_image[i][k] = image[old_x][old_y][0:3]
    return sized_image

import numpy as np


def resize(image, scale):
    if scale >= 1.0:
        return
    max_x = int(scale * len(image))
    max_y = int(scale * len(image[0]))
    sized_image = np.ndarray(shape=(max_x, max_y, 3), dtype=np.uint8)
    rec_scale = 1 / scale
    for i in range(max_x):
        old_x = int(rec_scale * i)
        for k in range(max_y):
            old_y = int(rec_scale * k + old_x % scale)
            sized_image[i][k] = image[old_x][old_y][0:3]
    return sized_image

import numpy as np


def resize(image, scale):
    if scale >= 1.0:
        return

    # Determine width and height of the result array
    max_x = int(scale * len(image))
    max_y = int(scale * len(image[0]))
    # Initialize result array
    sized_image = np.ndarray(shape=(max_x, max_y, 3), dtype=np.uint8)

    # Copy pixels from old to new array
    rec_scale = 1 / scale
    for i in range(max_x):
        old_x = int(rec_scale * i)
        for k in range(max_y):
            old_y = int(rec_scale * k + (old_x % scale))
            sized_image[i][k] = image[old_x][old_y][0:3]

    # Return result array
    return sized_image
