2026-07-24 15:07:31 +05:00
2026-07-24 15:07:31 +05:00
2026-07-24 15:07:31 +05:00
2026-07-24 15:07:31 +05:00
2026-07-24 15:07:31 +05:00
2026-07-24 15:07:31 +05:00
2026-07-24 15:07:31 +05:00
2026-07-24 15:07:31 +05:00
2026-07-24 15:07:31 +05:00

HP M1217 scanner

The scanner runs in an Alpine Linux container. Build the image and scan one page from the flatbed with:

make scan

The resulting PDF is written to scans/. The command passes the current user and group IDs to the container, so the PDF is owned by the invoking user.

Optional settings can be passed to make:

RESOLUTION=600 MODE=Gray make scan

Supported variables are RESOLUTION, MODE, SCAN_SOURCE, SCAN_WIDTH, SCAN_HEIGHT, JPEG_QUALITY, SCAN_TIMEOUT (seconds), and SANE_DEVICE. The default flatbed area is 215.9 × 297 mm; override it when using a different source or page size.

If an interrupted run leaves a container behind, the next make scan removes that exact scan container before opening the USB device.

Remove the scanner container, Compose resources, and the built image with:

make clean

Scanned PDFs in scans/ are preserved.

Description
Container for USB HP scanner
Readme 28 KiB
Languages
Shell 65.6%
Dockerfile 22.8%
Makefile 11.6%