Question

I use this to generate html page as image. So, my command looks something like this:

$ phantomjs rasterize.js 'http://example.com' image.png

Is it possible to set border and color for generating image via phantomjs?

Was it helpful?

Solution

Oh, well, it looks like it's impossible to do that via phantomjs. I choose another solution, via imagemagick. I installed it and now i use something like this:

$ convert input_img.png -bordercolor "LimeGreen" -compose Copy -border 4 output_img.png
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top