question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exporting of media

See original GitHub issue

It would probably very useful if images and PDF stored on Roam would be exported as well.

Via this thread (closed forum, but props where they are due), they look like an “easy” regex to find:

"string": "![](https://firebasestorage.googleapis.com/[..]/o/imgs%2Fapp%2FMY-GRAPH%2F-[IMAGEID].png?[AUTH_DELETED]

Alas, I don’t know how complicated it would actually be to have the attachments downloaded just because they’re easy to find.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gunarcommented, Oct 3, 2020

Solution: I’ve built a thing called markdown-backup to solve this problem. It downloads the images linked inside markdown files, and rewrites the link to point to the new local files. There are instructions on how to use it with roam-to-git. Feedback welcome.

0reactions
gunarcommented, Aug 19, 2020

I hadn’t realized this codebase is written in Python. It’d take too long for me as I’m not used to Python tooling.

For concern of losing my images, I’ve written this short bash script to download images from the generated markdown files. It doesn’t retroactively update the markdown files but at least you’ve got your images with you. Anyway, this might be an interim solution for whoever comes to this GH issue:

#!/usr/bin/env sh
ag -o "!\[.*\]\((.*)\)" | ag -o "\([^)]*" | cut -c 2- \
  | parallel -j 8 --halt never wget -P images --continue {}

Run it inside formatted/. You’ll need the silver searcher.

Anyway, this is a hack and we’d love it if someone could contribute to this feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Media & Entertainment - International Trade Administration
Information and resources for U.S. exports in the media and entertainment industry.
Read more >
Media Imports, Exports, Audiences - COMM 419 - Library Guides
To understand the influence of media and media audience in your country, it will require you to re-read and review many of the...
Read more >
Exporting a Media List | Muck Rack Help Center
How to export a Media List: Navigate to your Media Lists under Relationships. Select a Media List to export. Click Export and select...
Read more >
How to export and share video - Adobe Support
Make sure the Timeline panel is active and choose File > Export > Media. · Once you have chosen your export settings, click...
Read more >
Exporting Media Based on a List - Commvault Documentation
You can export a list of media from a tape storage to a destination location. Procedure. From the navigation pane, go to Storage...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found