3 ms·
This project is really weird. I mean, it's normal when all you want to do is view PDFs and DOCxs and so on. But the weird thing is...you can view webm files, mp
by keepamovin 3y ago
This project is really weird. I mean, it's normal when all you want to do is view PDFs and DOCxs and so on. But the weird thing is...you can view webm files, mpeg files, mp4 files. But they're like...not...normal.
Take for example a recent webm screencast I captured. It seems to be displaying the "compressed diff frames". It's really quite glitch-core and cyberpunk when you look at all the frames that come out.
Basically the idea is the to take an input and convert it to a linear sequence of images of pages...but...what happens when the underlying file doesn't have a "normal" representation as a "page"? well, you get weird glitchy goodness.
I love it. I am share here.
I have very happ because I recently discovered how to use latex to typeset textfiles, using pandoc / pdflatex. Previously this was offlimits. So now I have a monster of a bash script (./scripts/convert.sh) that turns all manner of crazy insane formats into nice, orderly linear image sequences. Hurra! enjoy my goodness friend!
It can run on local or deploy to a server. The docs may be a bit lacking but basically you need to:
0. Edit ./secrets/key.js to be module.exports = 'your secret api key for your doc server'
1. ./scripts/setup.sh
2. ./scripts/restart.sh
3. Open https://<hostname>/secretpage-canneverbefound.html?secert=<your https://<hostname>/secretpage-canneverbefound.html?secert=<y... API key guy> in your browser.
4. Open your docs.
5. Profit....
(somehow)
Please consider donating...just kidding! It's free. Use it. To your heart's content (AGPL-3.0 tho huh). Weird to visualize the compression process of various image formats by seeing the "frames" that come out of this when you "Choose file" a video input.
Let me know what you think. Many things can be improved (for instance: i want to put a number control for the page number so you can scroll up and down the pages rather than click left and right to go back and forward). Suggestions welcome!