Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
seedgou
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
Show HN: Generate your authentic and realistic Chinese name
(chinesename.app)
5 points
by
seedgou
2y ago
|
1 comments
2.
▲
by
seedgou
4y 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
3.
▲
by
seedgou
4y ago
The rendering logic is in `src/utils/pdf/renderPage.ts` and has only 26 lines.
4.
▲
by
seedgou
4y ago
The site's logic is nearly identical to this gist: use ImageMagick to do the rotate, noise, etc.
5.
▲
by
seedgou
4y ago
GitHub URL: https://github.com/rwv/lookscanned.io
6.
▲
by
seedgou
4y ago
Good idea! A random distribution on rotation seems a more user-friendly way instead of setting 10 rotation values.
7.
▲
by
seedgou
4y ago
I didn't manipulate the data in pixel level. Maybe because I render PDF in 2x which causes 4x more pixels?
8.
▲
by
seedgou
4y ago
There's an example PDF after clicking "START SCANNING" button. Maybe add more real-world examples.
9.
▲
by
seedgou
4y ago
This is inspired by baicunko/scanyourpdf and previous HN link: https://news.ycombinator.com/item?id=23157408
10.
▲
by
seedgou
4y ago
Use PDF.js and magica to do the rendering and processing. You could see the credits in GitHub repo page.
11.
▲
Show HN: Make your PDF look scanned in browser
(lookscanned.io)
579 points
by
seedgou
4y ago
|
177 comments
12.
▲
Show HN: Find Mac Apps that could be replaced with Mac App Store version
(github.com)
2 points
by
seedgou
5y ago
|
0 comments