GitHub - ericleong/scrollshot: A bash script for automatically scrolling and stitching screenshots of Android apps.

2 min read Original article ↗

Skip to content

Navigation Menu

This repository was archived by the owner on Feb 3, 2023. It is now read-only.

scrollshot

A bash script for automatically scrolling and stitching screenshots of Android apps. Detects and accounts for overlapping pixels.

requirements

api

$ scrollshot.sh <filename> <iterations> <footer keep> <footer ignore> <distance> <start> <overlap> <end>
argument default purpose
filename scrollshot name of the output file, without .png
iterations 3 number of iterations to scroll
footer keep auto bottom area to keep in output and ignore when scrolling (in pixels)
footer ignore 0 additional bottom area to ignore when scrolling (in pixels)
distance 2 * dpi distance to scroll per iteration (in pixels)
start -4dp initial overlap test offset (in pixels)
overlap 20dp height of overlap test area (in pixels)
end 4dp final overlap test offset (in pixels)

tips

  • Keep the floating action button from repeating with footer ignore set to about 78dp.
  • To preserve spacing in apps with a lot of whitespace (identical vertical pixels), increase overlap.
  • Blinking cursors will fool the automatic footer detection.

About

A bash script for automatically scrolling and stitching screenshots of Android apps.

Topics

Resources

Readme

License

MIT license

Activity

Stars

48 stars

Watchers

4 watching

Forks

1 fork