▲ | andrehacker a day ago | |
Yes, kind of... /path/to/firefox --window-size 1700 --headless -screenshot myfile.png file://myfile.html Easy, right ? Used this for many years... but beware: - caveat 1: this is (or was) a more or less undocumented function and a few years ago it just disappeared only to come back in a later release. - caveat 2: even though you can convert local files it does require internet access as any references to icons, style sheets, fonts and tracker pixels cause Firefox to attempt to retrieve them without any (sensible) timeout. So, running this on a server without internet access will make the process hang forever. |