HTML (email) file, split into chunks around the table
with the class of backgroundTable
each block saved as a new HTML file and a screenshot of each generated
https://splitscript.herokuapp.com/
-
First run
npm install
to install dependencies -
Run
npm start
to start the server - Which opens on port3000
by default (try removedprocess.env.PORT
in app.listen if server doesn't run locally)
-
Drag a HTML file onto the page
-
Make sure it has the class of
backgroundTable
on the outer block that you want to split at -
Wait for the script to process then a zip file will download
I'm not a dev, this is my first node project so I'm sure there are bugs.
The output folder gives you a file named block-$
and image-$
Images are cropped to 600px as this is the size I needed them but you can change this in the src/renderer.js
file