dsh-auto-convert

Prepares files before read, read_image and the vision tools open them: downscales images over 2048 px or 8 MB (one retry at 1280 px within the same turn), converts BMP/TIFF to PNG, relabels mislabeled uploads by sniffing their bytes, and turns docx/xlsx/pptx, text-layer PDF, csv/tsv and html into Markdown with no external programs.

Overview

Prepares files before read, read_image and the vision tools open them: downscales images over 2048 px or 8 MB (one retry at 1280 px within the same turn), converts BMP/TIFF to PNG, relabels mislabeled uploads by sniffing their bytes, and turns docx/xlsx/pptx, text-layer PDF, csv/tsv and html into Markdown with no external programs.

Installation

Install from GitHub

dsh plugin --profile web add github:yimengsuper2432/dsh-auto-convert

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.