whatsapp-archive icon indicating copy to clipboard operation
whatsapp-archive copied to clipboard

Possible to source media?

Open neilio opened this issue 7 years ago • 4 comments

I was wondering if it was possible to add the ability to embed images (and video?) into the output? I'm thinking something super simple - just img src the images, for example.

neilio avatar Sep 18 '18 19:09 neilio

As an example all of my images have a date prefix with a UUID at the end:

2016-06-27-PHOTO-00000050.jpg

neilio avatar Sep 18 '18 19:09 neilio

Certainly it could be possible to download a whole folder with a WhatsApp export and add HTML tags to display media on the page. So far I've worked with the text-only exports, that can reach a few months back in time. Exports that include media were too short for me, so I didn't have too much interest in them.

From the cursory looking at the export, the syntax is very loose, for example the phrase saying "attached file" is internationalized, so a simple parser won't work.

I agree that this is a good feature, but I at the moment I can't commit to implementing it. If anybody writes a patch, I will be happy to review it and include it in the project.

automaciej avatar Sep 20 '18 17:09 automaciej

Any news on this?

Sogl avatar Nov 27 '19 22:11 Sogl

No news, I won't work on this now – sorry – but the project is open for contributions.

automaciej avatar Nov 28 '19 13:11 automaciej

Pull request #9 implements this, I reviewed the code, it requires some changes, but looks good overall.

automaciej avatar Dec 31 '22 13:12 automaciej