Skip to content

Script to download images from a markdown file and replace URL to point at backup location

License

Notifications You must be signed in to change notification settings

JumiDeluxe/markdown-backup-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

markdown-backup-images

Script to download images from a markdown file and replace URL to point at backup location.

Comes in handy if you:

  • don't want to rely on internet connection
  • don't trust hackmd to keep your files forever
  • just experienced imgur purging your most important screenshots (or favourite memes) from their servers

Usage:

usage: python3 markdown-backup-images.py [-h] inputfile outputfile path

positional arguments:
  inputfile   markdown file which images should be backed up
  outputfile  filename of new file with replaced image paths
  path        location of images backups

optional arguments:
  -h, --help  show this help message and exit
If you use Joplin you might want to configure how the path is changed in the new .md file, because it has problems with relative path (and extensions)

About

Script to download images from a markdown file and replace URL to point at backup location

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages