def resize_image(image, size):
    """
    Resize the image to fit in the specified size.

    :param image: Original image.
    :param size: Tuple of (width, height).
    :return: Resized image.
    :rtype: :py:class: `~PIL.Image.Image`

    """
    image.thumbnail(size)
    return image