guyzyl / whatsapp-contact-sync

Easy way to sync between the contact photos on WhatsApp to Google Contacts
https://whasync.com/
Other
171 stars 19 forks source link

Higher Picture Quality for photo sync? #90

Closed bigplayer-ai closed 2 weeks ago

bigplayer-ai commented 1 year ago

Hey, After viewing the contacts' they tend to be blurry, Can you add the option for higher picture quality download from whatsapp?

guyzyl commented 1 year ago

There is no such option since there isn't an option to control the photos resolution when downloading it using whatsapp-web.js. Also, I think it's safe to assume that WhatsApp isn't storing (or at least serving them) in a very high resolution.

I'm guessing that the photos are blurry since they're blurry in peoples profiles. If you have concrete examples of photos that are sharp in the profile but get uploaded blurry, I'd be glad to look it over again :)

bigplayer-ai commented 1 year ago

There is no such option since there isn't an option to control the photos resolution when downloading it using whatsapp-web.js. Also, I think it's safe to assume that WhatsApp isn't storing (or at least serving them) in a very high resolution.

I'm guessing that the photos are blurry since they're blurry in peoples profiles. If you have concrete examples of photos that are sharp in the profile but get uploaded blurry, I'd be glad to look it over again :)

They are not blurry in WhatsApp, only in google photos

guyzyl commented 1 year ago

The original photos doesn't seem very sharp, but the one uploaded to Google contacts looks even worse. I'll try to see if there's some downscaling happening anywhere during the process, but it will take me a while to get around to it.

bigplayer-ai commented 1 year ago

The original photos doesn't seem very sharp, but the one uploaded to Google contacts looks even worse. I'll try to see if there's some downscaling happening anywhere during the process, but it will take me a while to get around to it.

Oh this is because it's a screenshot, I have other contacts that have sharper contacts photos.

whyrnld commented 1 year ago

Same thing happens to me

guyzyl commented 1 year ago

I have not noticed this behavior when syncing my contacts. Can anyone try to pinpoint the bug causing this?

alequisgomes commented 10 months ago

Hi everyone, I was having this same issue when trying to view some of the pictures in my samsung contacts app. But when accessing the google contacts via web (contacts.google.com), the pictures seemed to have a reasonable resolution, which indicates the incorrect sync could be in the interface between google contacts and the phone app.

For anyone else having this issue, i recommend accessing contacts.google.com and checking if the pictures are also super blurry there.

This app is great and did exactly what I needed. Thanks for that.

EDIT:

I was able to reproduce the behaviour described in this post:

https://eu.community.samsung.com/t5/galaxy-s10-series/samsung-contacts-doesn-t-load-contact-photos-in-full-resolution/td-p/1486401

Downloaded the google contacts app, opened a specific contact, and the blurry picture was instantly updated in my samsung contacts app... Really annoying but probably doesn't have anything to do with WhatsApp Contact Sync.

guyzyl commented 10 months ago

@alequisgomes thanks for the update! @bigplayer-ai / @whyrnld can you confirm this?

seemebreakthis commented 9 months ago

@alequisgomes thanks for the update! @bigplayer-ai / @whyrnld can you confirm this?

Can confirm with my Xiaomi Mi 11 phone. Downloaded the google contacts app, opened a specific contact, and the blurry picture of that particular contact was instantly updated with the sharper version in my google contacts app...

Which means I need to do this one by one. But it seems the high-res picture are already at Google's side, it just doesn't get updated properly on your phone unless you 'refresh' each one in the contacts app first.

bigplayer-ai commented 8 months ago

@alequisgomes thanks for the update! @bigplayer-ai / @whyrnld can you confirm this?

I can not confirm, I have the blurry/very low resolution/pixelated contact picture in Google Contacts application and Google Contacts Web. On WhatsApp the contact profile picture seems very clear and sharp on web and on application!

guyzyl commented 7 months ago

@bigplayer-ai what happens if you right click on the picture in GContacts web, and open picture in a new tab? I suspect the picture might have only partially loaded, but opening in a new tab should load the full-res picture.

If it's still blurry, can you help me find a way to replicate the issue?

bigplayer-ai commented 7 months ago

I think the problem is that WhatsApp only partially loads profile pictures for contacts not directly messaged. Is there a way to fully load all pictures of all contacts in WhatsApp before downloading them?Google Contacts' profile pictures are also partially loaded even in new tabs or when zoomed. I am using web google contacts and application on my phone The issue specifically involves WhatsApp partially loading pictures for some contacts, not all.

guyzyl commented 7 months ago

That might be what's happening, but I have no way of controlling it. The only thing I do to download the profile picture from WhatsApp is use this API call which gives me the pictures URL, and then download it.

PROxZIMA commented 2 weeks ago

This issue is completely related to data syncing between the Google Phone app and the Google Contacts app. This application is properly setting the high quality image which is coming from WhatsApp.

I too was confused at first but after opening a contact photo in the Google Contacts app, the contact photo got updated in the Google Phone app too.

This issue can be closed.

guyzyl commented 2 weeks ago

Thanks for the update, I'l go ahead and close the issue :)