CLI tool
overflowy/make-look-scanned avatar
overflowy/make-look-scanned

The CLI is byte-identical for a given seed, and the browser build is not

Makes PDFs look scanned (CLI or in the browser via WASM)

1,012 stars52 forksGoAGPL-3.0

At a glance

What is it?
A Go CLI that rasterises each PDF page, runs it through skew, grain, defocus and JPEG artifacts, and writes back an image-only file, with the same three dependencies and two different licensing stories depending on how you build it.
Who is it for?
This is a small, well-bounded tool for one purpose: turning a clean PDF into something that reads as a scan, with knobs for skew, tone, grain, defocus, edge shadow and JPEG quality, and a preset file for reusing a look. Three things to know before you point it at anything.
Can I use it commercially?
Yes, with strict conditions. AGPL-3.0 is a network copyleft licence: if people use a modified version over a network, for example as a hosted service, you must offer them its source code under the same licence.
Is it still maintained?
Yes. The repository last received commits 155 days ago.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • overflowy/make-look-scanned1,012 ★ · +203
Star history
Repository2026-09-182026-11-23
overflowy/make-look-scanned8091k

203 Stars in the last 66 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The two builds carry different license obligations

The project is AGPL-3.0, and the page explains why rather than just asserting it. The CLI statically links MuPDF through go-fitz, MuPDF is AGPL-3.0, so the combined binary is AGPL-3.0 and distributing it means offering the corresponding source.

The browser build does not include MuPDF. It rasterises with PDF.js, which is Apache-2.0. So the same repository produces two artefacts with different obligations depending on which build path you took, and the difference is not visible from the LICENSE file at the root, which is simply the AGPL-3.0 text.

The practical reading is that the offline single-file build is the lighter one to hand around, while anything built from the CLI path carries the source-offer requirement. The browser build also inlines PDF.js itself, library and worker, so the licence obligations of that dependency travel inside the file you distribute.

Neither the page nor the root listing says anything about a separate licence for the bundled assets, so the AGPL-3.0 record and the AGPL-3.0 file are the only statements to go on.

Determinism is a CLI property, not a project property

The determinism claim is specific and testable. The random seed is derived from the input PDF's content, so the same file always produces the same scan, and the same input plus the same seed yields a byte-identical PDF. `--seed N` asks for a different look that is still reproducible.

That is a stronger guarantee than most image filters offer, and it depends on the seed defaulting to a content hash rather than to the clock.

It does not hold across build targets. The single-file browser build is described as visually equivalent to the CLI but not byte-identical, and the reason given is that PDF.js and MuPDF rasterise differently. Same input, same seed, different bytes. So a pipeline that runs the CLI on a server and the browser version on a client will produce two files that look the same and compare unequal, and any check based on hashes, caching or deduplication across the two will misbehave.

Nothing on the page offers a way to align the two rasterizers, so the difference is something to account for rather than something to configure.

The output has no text layer, and that is the point

Each page is rasterised to an image, run through the effect pipeline, and reassembled into a new PDF. The reassembled file is image-only, and the page says the original selectable text is gone, describing that as faithful to a basic scanner.

So the trade is stated plainly: the document stops being searchable and stops being copyable, in exchange for looking like it came off a flatbed. Anyone who needs the text, or who needs the file to remain accessible to a screen reader, has to keep the original.

The resolution knob is `--dpi`, defaulting to 150, and the default output is desaturated because `--grayscale` defaults to true. The remaining defaults are modest by design: skew 0.6 degrees, paper tone 0.6, grain 0.08, blur sigma 0.4, edge shadow 0.15, JPEG quality 70. Each one is a named stage of the same pipeline the opening paragraph lists, which is skew, grayscale, warm paper tone, scanner grain, defocus, edge shadow and JPEG compression artifacts.

Every numeric knob switches its own effect off at zero, so a stage is never unavoidable once you know the number.

Presets come from two paths, and a missing one is not discussed

In that file the keys are the flag names in snake case. The path is `$XDG_CONFIG_HOME/make-look-scanned/config.toml`, and when `XDG_CONFIG_HOME` is unset the lookup falls back to `~/.make-look-scanned/config.toml`. That fallback is worth noticing: it is a dot-directory in the home folder rather than the conventional `~/.config/make-look-scanned/`, so a machine with XDG set and a machine without it read the config from two unrelated places.

Inside the file, the keys are the flag names in snake case. A medium preset is five lines:

toml
[presets.medium]
skew = 1.5
paper_tone = 0.6
noise = 0.2
blur = 0.6
edge_shadow = 0.3
jpeg_quality = 45

and it is selected by name on the command line:

sh
make-look-scanned --preset medium in.pdf

Precedence is built-in defaults, then the selected preset, then explicit command-line flags, and flags always win. What the page does not say is what happens when `--preset` names something the file does not define, and the flag's own default is shown as empty, so the no-preset path is the one that is certain to work.

A C toolchain for the CLI, a CDN for the browser build

The CLI is one command once the toolchain is present:

sh
go build -o make-look-scanned .

It needs Go and a C toolchain, because go-fitz links MuPDF through cgo. The payoff of that link is that the resulting binary is self-contained and nothing has to be installed at runtime, so the build pays a cgo dependency to avoid a runtime one.

The browser side has two build paths. The development path compiles the wasm and serves the directory:

sh
./web/build.sh                       # builds web/main.wasm + wasm_exec.js
(cd web && python3 -m http.server 8080)   # then open http://localhost:8080

That path needs network access, because it pulls PDF.js from a CDN. The alternative inlines everything:

sh
task build:web                       # writes dist/make-look-scanned.html (~8 MB)

The result is a single self-contained HTML file of roughly 8 MB with the wasm, Go's runtime glue and PDF.js as base64 inside it, which opens from disk with nothing to serve. The reason the wasm build uses PDF.js at all is stated directly: go-fitz and MuPDF cannot compile to wasm, so rasterisation moves to the browser while the effect code stays the same Go compiled to wasm.

Three direct dependencies and a main.go sitting beside cmd/

The module declares Go 1.26.4 and three direct requirements. BurntSushi/toml at 1.6.0 reads the presets, gen2brain/go-fitz at 1.24.15 is the MuPDF binding that does the rasterising, and signintech/gopdf at 0.36.1 writes the reassembled PDF. Five more arrive indirectly, among them purego and a ffi package for the cgo-free path, plus the usual error and system packages.

The root layout puts `main.go` at the top level next to a `cmd/` directory, with `internal/`, `web/`, `go.sum` and a Taskfile.yml for the `task` runner that produces the offline HTML file. So the module path matches the repository and the homepage is the GitHub Pages address of the browser build, which is also where the hosted demo lives.

There are two releases, v1.0.0 on 2026-06-20 and v1.1.0 on 2026-06-21, the second one four minutes after the repository's last recorded push on the same day. The project is not archived.

Editorial conclusion

This is a small, well-bounded tool for one purpose: turning a clean PDF into something that reads as a scan, with knobs for skew, tone, grain, defocus, edge shadow and JPEG quality, and a preset file for reusing a look. Three things to know before you point it at anything. First, the output has no text layer, so if the document needs to stay searchable or accessible, this is the wrong tool. Second, the CLI and the browser build are licensed differently in practice, because only the CLI carries MuPDF, and MuPDF is what makes the binary AGPL; read the license section before you ship either artefact. Third, reproducibility is a CLI property, not a project property: the same input and seed give a byte-identical file on the command line, while the browser build is only visually equivalent because a different rasterizer produces the pixels. If you need both an online demo and a server-side pipeline to agree exactly, that difference has to be designed around rather than discovered later.

Frequently asked questions

Does make-look-scanned keep the text in the PDF selectable?

No. Each page is rasterised to an image, run through the effect pipeline and reassembled, and the result is image-only, so the original selectable text is gone. The page describes that as faithful to what a basic scanner produces.

Is the output of make-look-scanned reproducible?

In the CLI, yes. The seed defaults to a hash of the input PDF's content, and the same input plus the same seed produces a byte-identical PDF. The browser build is only visually equivalent to the CLI, because PDF.js and MuPDF rasterise differently.

What license applies to make-look-scanned?

AGPL-3.0. The CLI statically links MuPDF through go-fitz, and MuPDF is AGPL-3.0, so distributing the binary requires offering the corresponding source. The browser build contains no MuPDF and rasterises with PDF.js under Apache-2.0 instead.

How do you build make-look-scanned?

The CLI needs Go and a C toolchain because go-fitz links MuPDF through cgo, and builds with go build -o make-look-scanned . so the binary is self-contained. For the browser, ./web/build.sh plus a local HTTP server works but needs network for the PDF.js CDN, while task build:web writes a single offline HTML file of about 8 MB.

Where do make-look-scanned presets live?

In $XDG_CONFIG_HOME/make-look-scanned/config.toml, falling back to ~/.make-look-scanned/config.toml when XDG_CONFIG_HOME is unset. Preset keys are the flag names in snake case, and precedence runs from built-in defaults through the selected preset to explicit flags, which always win.

Official sources

  1. License: AGPL-3.0
  2. overflowy/make-look-scanned on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/overflowy-make-look-scanned.svg)](https://hysenlabs.com/projects/overflowy-make-look-scanned)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/overflowy-make-look-scanned.svg)](https://hysenlabs.com/projects/overflowy-make-look-scanned)

Was this useful?