Collect images from a directory tree and add them to a markdown file.
Project description
imdown
imdown (pronounce "I'm down") can be used to collect images from a directory tree and put them into a markdown file for markdown to compile to another format (although I typically use pdf's so its targeted at that mainly.)
install
Install from PyPI:
pip install imdown
or from GitHub:
pip install git+https://github.com/LeSasse/imdown.git
use
You can try it out on the example provided in this repository. Go to the example
directory:
git clone https://github.com/LeSasse/imdown.git
cd imdown/example
Collect all images from the figures
directory and put them into a markdown file:
imdown figures -o markdown_files/all_filetypes.md
and see the result in markdown_files/all_filetypes.md. Or filter out a specific filetype only i.e. pdf's:
imdown figures -f pdf -o markdown_files/only_pdfs.md
You can then manually adjust the markdown file and compile via pandoc. If you do not need to adjust it and just want the pdf, you can also skip the intermediate markdown file and pipe it straight into pandoc (of course for this you need pandoc installed!):
imdown figures -f pdf | pandoc -o output_pdfs/piped.pdf
and see the result in output_pdfs/piped.pdf.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for imdown-0.0.1.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8935b27cc5e521640988190ee1f0d55cedc2390636aae74e9ecb4ffc83b71ede |
|
MD5 | 396fbc1cd7ca7b7c7d9e3035c2b4c46a |
|
BLAKE2b-256 | c4d0246eca3415fd59b1532c84d4b288b3957bf1fe75af03c9e68911f8a29134 |