summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-12-01 13:24:30 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-12-01 13:24:30 (GMT)
commite6aa3a60e49de2caec84f71a3840ca7a622d3714 (patch)
tree9986a49f1d19fd25306a080b86b47e66765714dc
parentddb925a6c044c1c7898359cf464489a8e6fadd5f (diff)
downloadmisc-fred-e6aa3a60e49de2caec84f71a3840ca7a622d3714.zip
misc-fred-e6aa3a60e49de2caec84f71a3840ca7a622d3714.tar.gz
misc-fred-e6aa3a60e49de2caec84f71a3840ca7a622d3714.tar.bz2
shot them all: update sizes add mobile/horizontal screenshot
-rw-r--r--bin/shot_them_all.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/shot_them_all.py b/bin/shot_them_all.py
index 51381be..72f224c 100644
--- a/bin/shot_them_all.py
+++ b/bin/shot_them_all.py
@@ -31,8 +31,10 @@ for theme in themes_data['themes']:
time.sleep(1)
os.system('sudo service memcached restart')
browser.get('https://auquo.fred.local.0d.be/contactez-nous/inscription-sur-les-listes/')
- browser.set_window_size(1200, 1000)
+ browser.set_window_size(1400, 1000)
browser.save_screenshot('shots/%s-desktop.png' % theme_id)
- browser.set_window_size(480, 1000)
+ browser.set_window_size(360, 740) # Samsung Galaxy S8
browser.save_screenshot('shots/%s-mobile.png' % theme_id)
+ browser.set_window_size(740, 360) # ditto, horizontal
+ browser.save_screenshot('shots/%s-mobile-horizontal.png' % theme_id)
sys.stderr.write(u' 📸 \n')