mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
disable gpu (#286)
This commit is contained in:
@@ -46,7 +46,7 @@ func (e *Thumbnail) Screenshot(ctx context.Context, req *thumbnail.ScreenshotReq
|
|||||||
}
|
}
|
||||||
cmd := exec.Command("/usr/bin/chromium-browser",
|
cmd := exec.Command("/usr/bin/chromium-browser",
|
||||||
"--headless", "--window-size="+width+","+height, "--no-sandbox", "--screenshot="+imagePath,
|
"--headless", "--window-size="+width+","+height, "--no-sandbox", "--screenshot="+imagePath,
|
||||||
"--hide-scrollbars", "--disable-setuid-sandbox", "--single-process", "--no-zygote", req.Url)
|
"--hide-scrollbars", "--disable-setuid-sandbox", "--single-process", "--no-zygote", "--disable-gpu", req.Url)
|
||||||
outp, err := cmd.CombinedOutput()
|
outp, err := cmd.CombinedOutput()
|
||||||
logger.Info(string(outp))
|
logger.Info(string(outp))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user