Skip to content

High performance image or pdf creation with phantomjs pool

License

Notifications You must be signed in to change notification settings

iamdamith/phantomjs-browsershot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

High-performance image or pdf creation with phantomjs pool

Latest Version MIT Licensed Total Downloads

Phantomjs-browsershot runs as a service.

Advantages

This package runs as a service. It goes not attached to a tool or software. This can process 12 images simultaneously. You can generate high-quality images than dataurl ( dataurl only supports up to 72dpi )

How to install

git clone git@github.com:damyth/phantomjs-browsershot.git browsershot cd browsershot npm install npm run app.js

** For run ith the server continuously, you can use a node process manager (pm2, etc)

Test

Send a CURL request via terminal

curl -XPOST -H "Content-type: application/json" -d '{"urls":[{"url":"local_url_to_print","save_path": "local_path_to_save_file/a.jpg"}],"public_path":"/"}' 'localhost:3030/prints

Help & info

Please feel free to contact me if you need more details regarding this package. I'll update this when I have time. But until then, let's talk.. :)

About

High performance image or pdf creation with phantomjs pool

Resources

License

Stars

Watchers

Forks

Packages

No packages published