Skip to content

Samathingamajig/obsidian-slides-to-png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

obsidian-slides-to-png

YouTuber No Boilerplate uses a plugin for Obsidian called Advanced Slides to generate slideshows for his videos with markdown. His process is to "take each slide, printscreen it, and splice it with my audio using reaper.fm". I think the process of printscreening is prone to errors (how do you guarantee the exact size?) and time-consuming. This simple script takes in the url to the slideshow preview (defaults to localhost:3000, the default port of the slides plugin), optional width and height (defaults to 1920 by 1080 pixels), and an optional path to output the slide screenshots in (defaults to slides in the working directory).

To install dependencies:

npm install

To run:

npx tsx index.ts

Here are the options:

Usage: index [options] [url]

Arguments:
  url                            URL to process (default: "http://localhost:3000")

Options:
  -w, --width <width>            Width of the output (default: 1280)
  -h, --height <height>          Height of the output, -1 defaults to 16 by 9 ratio of width (default: -1)
  -o, --output-dir <output-dir>  Output directory (default: "slides")
  --help                         display help for command

To open the Advanced Slides preview and get the url

  1. Install Obsidian and the "Advanced Slides" plugin
  2. Open the command palette (Cmdp on Mac) and enter "slides show preview" and select "Advanced Slides: Show Slide Preview"
  3. Click the icon that looks like a monitor with bars on it that's labeled "Open in Browser" when hovered
  4. Copy that url

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published