문제

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?

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top