Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm looking for the file that corresponds to my account photo (this is also my ichat icon)

This is what I'm talking about:

share|improve this question
    
So your trying to get the actual image file? –  anon173 Apr 17 '12 at 22:27
    
yup, that's exactly what i'm trying to do (stupid length requirement lol..) –  Horace Loeb Apr 17 '12 at 22:29

1 Answer 1

up vote 1 down vote accepted

If you wish to extract a 320x320 version of your account picture you can do so by running the following command: dscl . -read /Users/short_username JPEGPhoto | tail -1 | xxd -r -p > /PATH/TO/accountImage.jpg

Since a 320x320 image would be too small for many purposes, it would be preferable to look first for the actual photo in ~/Library/Images/iChat Recent Pictures/.

The following "generic" command, when copy-pasted directly into Terminal and run without modification, creates a small file named MyAccountPic.jpg on the current user's Desktop:

dscl . -read /Users/`id -un` JPEGPhoto | tail -1 | xxd -r -p > ~/Desktop/MyAccountPic.jpg
share|improve this answer
    
Links often break over time. Please summarize the contents of external sites in your answer rather than simply linking. –  Daniel Lawson Apr 18 '12 at 20:56
    
Okay, is that better? –  anon173 Apr 18 '12 at 21:10
    
much better! Thanks –  Daniel Lawson Apr 18 '12 at 21:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.