Last active
August 30, 2024 04:04
-
-
Save haru067/fb622ba07681768e8c56b1bd0cecc98b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tmpfile=$(mktemp) | |
adb shell screencap -p > $tmpfile | |
# mogrify -resize 50% $tmpfile | |
mogrify -resize 300x $tmpfile | |
osascript -e "set the clipboard to (read (POSIX file \"$tmpfile\") as JPEG picture)" | |
rm $tmpfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment