seedgou

Joined 5 years ago

Karma
378
Submissions
15
Member since
Oct 27
<github.com/rwv>
View on Hacker News

Recent submissions

Comment · 4 years ago
Oh! You mean the scanning speed. I thought you was talking about the original PDF preview. For now, scanning is using emscriptened ImageMagick Wasm. Due to the translation from C++ to Wasm, the scanning speed is very slow. Maybe re-writing blur, rotate and noise algorithm will speed up the scanning.
Comment · 4 years ago
The rendering logic is in `src/utils/pdf/renderPage.ts` and has only 26 lines.
Comment · 4 years ago
The site's logic is nearly identical to this gist: use ImageMagick to do the rotate, noise, etc.
Comment · 4 years ago
Comment · 4 years ago
Good idea! A random distribution on rotation seems a more user-friendly way instead of setting 10 rotation values.
Comment · 4 years ago
I didn't manipulate the data in pixel level. Maybe because I render PDF in 2x which causes 4x more pixels?
Comment · 4 years ago
There's an example PDF after clicking "START SCANNING" button. Maybe add more real-world examples.
Comment · 4 years ago
Comment · 4 years ago
Use PDF.js and magica to do the rendering and processing. You could see the credits in GitHub repo page.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton