mix tesseract_js.download (tesseract_js v0.1.0)

Copy Markdown View Source

Downloads the tesseract.js core WASM bundle and one or more traineddata language files into your app's priv/static/assets/vendor/tesseract/, so you can run tesseract_js in local mode (no jsDelivr at runtime).

Examples

mix tesseract_js.download                       # core + "eng" + :standard
mix tesseract_js.download eng jpn               # core + two langs
mix tesseract_js.download --tier best eng jpn   # from tessdata_best
mix tesseract_js.download --list                # prints curated registry
mix tesseract_js.download --core-only           # just the WASM core

Options

  • --tier — one of standard (default) or best.
  • --core-variantsimd_lstm (default), simd, basic.
  • --out — output dir, defaults to priv/static/assets/vendor/tesseract.
  • --core-only — download only the WASM core.
  • --list — print the curated language registry and exit.
  • --force — re-download even if file exists.