I have an image of size (200 by 200). The image data is stored as <class 'bytes'> as below. Is there a way to pad the image to size (1,080 by 1,920)? This is not resize but pad the image to another size.
image_data = '\xc0q\xc7\x1c\x07\x1cq\xc0q\xc7\x1c\x07\x1cq\xc0\xff\xd9......'