I can see the resize in 224 in Android degrade the quality of images. For comparison purpose, I checked it by resize and save images in Android then I tried to resize it on desktop, downloaded the image:
from torchvision import transforms
from PIL import Image
image = Image.open(<path of image>)
transform= transforms.Resize((224, 224))
img= transform(image)
display(img)

and tried the image which was saved with the desktop transformation on Android then the results are exactly matching.
Android code for resizing,
Bitmap inp_bitmap= Bitmap.createScaledBitmap(bitmap,224,224,false);
What will be a good image resize utility which is equivalent to the PyTorch transformation resize function?
Any help is appreciated.