Firebase photoURL from Google Authorization Provider returns jpg with inverted colors

When I authenticate the user through Firebase (below), the resulting one usercontains an inverted color url photo. Click this jpg url to see the color inverse: https://lh3.googleusercontent.com/-JVpfmGGJuO8/AAAAAAAAAAI/AAAAAAAAAAME/sMJVq9F8gec/photo.jpg

However, when I paste this URL into the “image” editor button in Stack Overflow, it shows an image not inverted below:

enter image description here

signIn() {
    var provider = new firebase.auth.GoogleAuthProvider();
    provider.addScope('https://www.googleapis.com/auth/plus.login');
    firebase.auth().signInWithPopup(provider).then((result: any) => {
      this.user = result.user;
    })
  }

What's happening? Do I need to unzip the image somehow?

+4
1

: Alphabet. , .

0

Source: https://habr.com/ru/post/1672691/


All Articles