Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--force-max-texture-size

What does --force-max-texture-size do?

Sets the maximum texture size in pixels.

Usage

CLILaunch Chrome with --force-max-texture-size using CLI

chrome --force-max-texture-size

PuppeteerLaunch Chrome with --force-max-texture-size using Puppeteer

const browser = await puppeteer.launch({
  args: ['--force-max-texture-size']
});

PlaywrightLaunch Chrome with --force-max-texture-size using Playwright

const browser = await chromium.launch({
  args: ['--force-max-texture-size']
});

SeleniumLaunch Chrome with --force-max-texture-size using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--force-max-texture-size')

driver = webdriver.Chrome(options=options)