Skip to content

Instantly share code, notes, and snippets.

@shinokada
Created December 4, 2022 23:06
Show Gist options
  • Save shinokada/7b1f3c1a7365cd83899a2e2f4dae0642 to your computer and use it in GitHub Desktop.
Save shinokada/7b1f3c1a7365cd83899a2e2f4dae0642 to your computer and use it in GitHub Desktop.
  1. Replace all spaces with underscores
replaceit
  1. Convert pdf to png files
pdftoimg -s -w 288
  1. Convert png files to webp files
mkdir ./output-dir
consize png2webp -o output-dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment