Last active
March 26, 2017 10:04
-
-
Save terrywang/4393851 to your computer and use it in GitHub Desktop.
Extract / dump Mac OS X user account picture using dscl (Directory Service command line utility) and convert (hexdump into binary) it to to a JPEG file. NOTE: The resolution can vary depending on the original size of the photo and what version of the operating system you're using when it is saved.
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
dscl . -read /Users/username JPEGPhoto | tail -1 | xxd -r -p > /path/to/accountImage.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment