I presume that inside colab you are using OpenCV and inside android the standard libraries for loading and resizing. There are some slight difeerences doing so. Check an article I have written about a year ago about those differences:
  

      Medium – 2 Sep 20
  

  
    

Impact of different image loading and resizing libraries in TensorFlow... 4

  Written by George Soloupis

  
    Reading time: 4 min read
  

  

  
    
    
  

  


Best