下载 google-chrome 包
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
安装 google-chrome 包
yum -y install google-chrome-stable_current_x86_64.rpm
安装中文字体
yum -y groupinstall Fonts
根据参数命令 浏览器命令 生成 图片
google-chrome --no-sandbox --headless --disable-gpu --screenshot=test.png -run-all-compositor-stages-before-draw --window-size=1280,1400 https://*.m/test.html?q=%E8%AE%A2%E5%8D%95
chrome命令参数见:https://peter.sh/experiments/chromium-command-line-switches/
http://mrdede.com/?p=4219
程序中调用浏览器命令生成图片:如JAVA
Runtime.getRuntime().exec(“google --version”, null, dir)
liunx 安装 google-chrome 参考页面
https://blog.csdn.net/qq_23135449/article/details/127789631
https://www.jianshu.com/p/6962fbe88eba
java 通过html生成图片 参考
https://blog.csdn.net/xuechangchun007/article/details/120936431