Skip to content

Commit 2de75b7

Browse files
committed
Update screenshot.py. Note on viewport size limits in Chromium.
1 parent 209fe5a commit 2de75b7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/screenshot.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
Tested configurations:
2525
- CEF Python v57.0+
2626
- Pillow 2.3.0 / 4.1.0
27+
28+
NOTE: There are limits in Chromium on viewport size. For some
29+
websites with huge viewport size it won't work. In such
30+
case it is required to reduce viewport size to an usual
31+
size of a window and perform scrolling programmatically
32+
using javascript while making a screenshot for each of
33+
the scrolled region. Then at the end combine all the
34+
screenshots into one. To force a paint event in OSR
35+
mode call cef.Invalidate().
2736
"""
2837

2938
from cefpython3 import cefpython as cef

0 commit comments

Comments
 (0)