andreas-mausch / whatsapp-viewer

Small tool to display chats from the Android msgstore.db database (crypt12)
https://andreas-mausch.de/whatsapp-viewer/
MIT License
1.23k stars 381 forks source link

Links to Media Files #85

Open emi-r-g opened 5 years ago

emi-r-g commented 5 years ago

It would be wonderful if the current file names corresponding to media files became links to open the files. The media folder of WhatsApp would be provided on the computer with identical structure as on the device. Keep in mind that old WhatsApp messages come with absolute addressing such as: /mnt/sdcard/WhatsApp/Media/WhatsApp Images/IMG-20120710-WA0000.jpg but the new ones come with relative addressing such as: Media/WatsApp Video/VID-20180818-WA0001.MP4 But surely this is not a problem for a developer of your category ...

NioBee commented 3 years ago

I came here to suggest the same new feature. I have successfully saved my messages on PC, I can export them in HTML, I have all the media stored on PC too, it would be great to have hyperlinks to images, videos and other files.. perhaps it can be implemented during the process of creating the html file, after every thumbnail there is immediately the path to the file (for eg. /storage/sdcard0/WhatsApp/Media/WhatsApp Images/IMG-20130504-WA0001.jpg) so perhaps it could be added as hyperlink to the image I suppose something like this.. <div><a href="Media/WhatsApp Images/IMG-20130504-WA0001.jpg" target="_blank"> <img src="data:image/jpeg;base64,/9j/4AAQ..."></a></div> Thank you for your great work. Patrizia

NioBee commented 3 years ago

@andreas-mausch I saw you worked recently on this project, would be great if you could implement this feature in your next release! Thank you so much for your work.

andreas-mausch commented 3 years ago

Hi @NioBee,

I haven't spent a lot of time on this project recently, and I'd rather like to focus on the cross-platform rewrite (see here: https://github.com/andreas-mausch/whatsapp-viewer/tree/wxwidgets). That's why I haven't looked at additional features for the Windows only version.

But you are right. Just hyperlinks should be a quick change. If you don't have the files in the expected place, they will be invalid though.