tmo1 / sms-ie

SMS Import / Export is a simple Android app that imports and exports SMS and MMS messages, call logs, and contacts from and to JSON / NDJSON files.
GNU General Public License v3.0
336 stars 39 forks source link

Quality of contact photos after import #76

Open J4CKED opened 1 year ago

J4CKED commented 1 year ago

Question. As you probably know, exporting and importing contacts along with photos causes the quality of the photos to be degraded. With one import, there is not much difference. However, after several imports, you can see that the photo is of poor quality (compressed). Do you know why this happens? Is this also happening in your application?

Unfortunately, I haven't had a chance to test it yet. BTW. i described this problem a long time ago on xda https://forum.xda-developers.com/t/app-4-0-true-phone-best-dialer-contact-manager-replacement.2934816/post-83062639 (Unfortunately the links to the photos are out of date)

tmo1 commented 1 year ago

Question. As you probably know, exporting and importing contacts along with photos causes the quality of the photos to be degraded. ...

Do you know why this happens? Is this also happening in your application?

Actually, I don't use contact photos, so I have no first-hand experience of this :) Searching the web, however, suggests that the problem may be due to the fact that Android stores contact photos in two different places: low resolution thumbnails are stored in the Contacts database itself, which SMS I/E (and presumably other similar apps) backs up, while high resolution images are stored outside the database, in the filesystem, and so SMS I/E does not back them up. (See here, here, here, here, and here.)

If this is the problem, then the fix is relatively straightforward: modify the export and import routines to add the filesystem images to the export and import.

If this is the problem, however, then I would expect the complete quality degradation to occur after a single export / import cycle, rather than the progressive degradation over several such cycles that you describe. Proper testing and documentation of the problem are necessary before proceeding further.

IzumiSenaSora commented 1 year ago

Sorry i am bad in English...

I don't know about @J4CKED problem

But whenever i try to export contacts i got photo quality loss ... So i think if there is a fix to backup higher quality photos ... That would be appreciated ... Btw thanks for this apps

tmo1 commented 1 year ago

Thank you for the report. I'm considering overhauling the import / export format, and if / when I do so, I may be able to include a fix for this problem as well.