rwv / lookscanned.io Goto Github PK
View Code? Open in Web Editor NEW📚 LookScanned.io - Make your PDFs look scanned
Home Page: https://lookscanned.io
License: MIT License
📚 LookScanned.io - Make your PDFs look scanned
Home Page: https://lookscanned.io
License: MIT License
When hitting preview, the preview looks good as landscape, but when downloading the PDF, it gets generated in portrait with the page cut off
Love this wonderfull tool! Can you please create a batch option for multiple pdf edit? You rock!
Exports only as JPG/previews/links.
It should have an option to export a real PDF.
run strings
against the output file and there are hints easily spotted, that the scan is fake.
I'd suggest removing any artefact which provably concludes this was created using web technologies like javascript.
/Producer (jsPDF 2.5.1)
Given how this project seems to be heavily inspired by the more popular, baicunko/scanyourpdf, it would probably be a good idea to explain exactly how your application differs in the README file.
It would be nice if you could publish this as a flatpak on flathub e.g.
Of course, this also requires the app to be wrapped in Electron or so, that you can easily install.
The advantage would be you can restrict it (by default) and not give it internet permission, so users can be sure, no data is sent anywhere.
Flatpaks are a new software distribution mechanism for Linux distros, can thus installed on any distro and are easy to update. They are easy to install and update and work on all Linux distros.
Also, if you publish it on FlatHub you may grow your user base given many distros include that and it is a common software source, so your app can be discovered more easily.
Here is how to get started.
How to use the offline version? Index.html in the root directory after code download cannot be used
In the scanning process, there are not only colors, angles, and shadows, but also creases, fold lines, and even shadows on other pages (depending on whether the binding is removed or not, of course - if it is, then there are no additional shadows but there are binding marks)
In absence of a license, it's difficult for anyone to decide if they can contribute, or even read the code.
方便我们这些小白啦
Would be great if users could see what exactly this tool will do without having to try it out
Hi,
ERROR "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found." occurred in Debian11 when "nmp run dev". I tried these commands but it didn't work:
apt install npm
apt install libxcb-util1
sudo apt install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*'
python3 -m pip install PyQt5
sudo apt-get install libqt5x11extras5
ERROR still hapen when run npm run dev
, what could I do to run it successfully in Debian 11:
> [email protected] dev
> vite
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"eglfs"
]
},
"archreq": 0,
"className": "QEglFSIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"linuxfb"
]
},
"archreq": 0,
"className": "QLinuxFbIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archreq": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimalegl"
]
},
"archreq": 0,
"className": "QMinimalEglIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archreq": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"vnc"
]
},
"archreq": 0,
"className": "QVncIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archreq": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...
loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Aborted
npm ERR! code 134
npm ERR! path /home/user/Downloads/lookscanned.io
npm ERR! command failed
npm ERR! command sh -c vite
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2022-06-07T04_45_13_061Z-debug.log
在Debian11下重新换了一套命令尝试如下:
sudo apt install npm
mkdir /usr/local/node
cd /usr/local/node
wget https://nodejs.org/dist/v16.15.1/node-v16.15.1-linux-x64.tar.xz
tar -xvf node-v16.15.1-linux-x64.tar.xz
vim /etc/profile
在末尾加入:
VERSION=v16.14.0
DISTRO=linux-x64
export PATH=/usr/local/node/node-$VERSION-$DISTRO/bin:$PATH
刷新配置:
source /etc/profile
npm install electron-packager -g
npm i
npm dev run
出现如下错误:
> [email protected] dev
> vite
failed to load config from /home/user/lookscanned.io/vite.config.ts
error when starting dev server:
Error: Cannot find module 'fs/promises'
Require stack:
- /home/user/lookscanned.io/node_modules/@vuetify/loader-shared/dist/styles/writeStyles.js
- /home/user/lookscanned.io/node_modules/@vuetify/loader-shared/dist/index.js
- /home/user/lookscanned.io/node_modules/@vuetify/vite-plugin/dist/importPlugin.js
- /home/user/lookscanned.io/node_modules/@vuetify/vite-plugin/dist/index.js
- /home/user/lookscanned.io/vite.config.ts
- /home/user/lookscanned.io/node_modules/vite/dist/node/chunks/dep-59dc6e00.js
- /home/user/lookscanned.io/node_modules/vite/dist/node/cli.js
- /home/user/lookscanned.io/node_modules/vite/bin/vite.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/user/lookscanned.io/node_modules/@vuetify/loader-shared/dist/styles/writeStyles.js:4:20)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
npm ERR! code 1
npm ERR! path /home/user/lookscanned.io
npm ERR! command failed
npm ERR! command sh -c vite
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-06-08T00_39_35_631Z-debug.log
在Windows 10下,运行命令安装环境:
安装node.js
npm install electron-packager -g
npm i
npm dev run
vite v2.9.9 dev server running at:
> Local: http://localhost:3000/
> Network: use `--host` to expose
ready in 223ms.
Leaving out step 2 (disabling Internet) works around the issue.
I have a Macbook m1 and it the website is stuck on "Combining PDF pages" for a single page pdf of a screen shot with Firefox 100.0.2 (64-bit).
Warning: fetchStandardFontData: failed to fetch file "FoxitSymbol.pfb" with "UnknownErrorException: StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.". 4 [pdf.worker.min.4ac4c8ea.js:22:21471](https://lookscanned.io/assets/pdf.worker.min.4ac4c8ea.js)
start Worker [index.44c81b0c.js:21:23008](https://lookscanned.io/assets/index.44c81b0c.js)
Message received from main script 2 [processImage.worker.e046c828.js:174:865](https://lookscanned.io/assets/processImage.worker.e046c828.js)
start Worker [index.44c81b0c.js:21:23008](https://lookscanned.io/assets/index.44c81b0c.js)
Message received from main script 2 [processImage.worker.e046c828.js:174:865](https://lookscanned.io/assets/processImage.worker.e046c828.js)
rendered page 1/1 [index.44c81b0c.js:25:68164](https://lookscanned.io/assets/index.44c81b0c.js)
start Worker [index.44c81b0c.js:21:23008](https://lookscanned.io/assets/index.44c81b0c.js)
Message received from main script 2 [processImage.worker.e046c828.js:174:865](https://lookscanned.io/assets/processImage.worker.e046c828.js)
processed page 1/1 [index.44c81b0c.js:25:68235](https://lookscanned.io/assets/index.44c81b0c.js)
Worker combineImagesToPdf: Received message from main script 2 [combineImagesToPdf.worker.c9f15f56.js:174:92](https://lookscanned.io/assets/combineImagesToPdf.worker.c9f15f56.js)
It does not work in Chrome (Version 102.0.5005.61 (Official Build) (arm64)). Chrome asks were to save the file, but nothing is downloaded into the file.
To reproduce:
Take a screen shot.
Open the screen shot in MacOS preview.
Print to pdf.
Upload the pdf to the website.
Hit save.
{wait forever}
Add an option to set compression ratio. the Generated PDF is too big. I try to compress with ilovepdf and the compression ratio result more than 90%.
Hi there,
With the latests update, "save as" feature has been lost.
Dowloaded documents go straigt away to Donwload folder.
Thank you!
i try to make a docker image use this dockerfile
FROM node
EXPOSE 4173 5050
WORKDIR /home/node/lookscanned
COPY lookscanned.io-main /home/node/lookscanned
RUN yarn add esbuild && npm run build:all
CMD npm run serve --host 0.0.0.0 --port 4173
but won't work, can you help?
I can't download the saved PDF in most cases.
On Chromium (snap/ubuntu), nothing happen, it show "Finished" but I got no file prompt.
On Firefox (snap/ubuntu), it stuck on "Combining PDF pages"
It has finally worked on Brave (again snap/ubuntu), but not with PDF filenames containing UTF8 char.
Frustrating, because everything else seems to work well :)
Thanks !
Hi,
thanks a lot for this app. As someone living in Germany I appreciate it! It would be a very nice feature for me if the app could also add a signature.
Options here could be to use a font that looks like handwriting similar to what the Firefox pdf viewer uses or let the user upload a signature.
构建后的\dist下的index.html双击打开后显示空白
先用了:
npm install
npm run build
index.html双击打开后显示空白
(\dist下的index.html)
hello, with the brightness config the result goes to dark and gray, however the rotation let corners keep white. then, it is easy to see the virtual attribute.
Edit: typo
Hi,
How to build an offline portable version in Windows system? It will be more convenient for office without WAN connection.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.