Giter VIP home page Giter VIP logo

macos-profile-picture-extractor's Introduction

macOS Profile Picture Extractor

I've grown to quite like Apple's Memoji feature, and have started using my Memoji as my profile picture on basically every website that lets you set one.

Apple does not provide a straightforward way to export your Memoji as an image, however you can set your macOS profile picture to a Memoji and then export that as an image.

This script is a wrapper around a command provided by John Galt on the Apple Community forums. The command extracts the current profile image from the macOS Directory Services.

Usage

Clone the repo and run macos-profile-picture-extractor.sh on the command line.

The image will be saved as a .JPG file in the working directory, with a random file name, so you can run the script repeatedly after making changes to your macOS profile picture - such as changing the background colour like in the banner above.

Quirks

I have noticed a few quirks that appear to be related to how macOS Directory Services saves your profile picture:

  • Sometimes the image will be malformatted. This seems to occur when you run the command immediately after setting saving your profile picture. This resulted in images that would open in Preview, but not VS Code.

  • Image size is inconsistent. Sometimes the command outputs 840x840 images, and sometimes 420x240 images.

Background Removal

Unfortunately, one limitation of this method is that there is no way to obtain an image with a transparent background.

I have had success using remove.bg. The light-grey 'Style' option seems to work best for this.

Alternatives

You can also convert your Memoji to a .PNG file with a transparent background using the following steps:

  1. Send yourself an iMessage sticker of the Memoji you wish to save.
  2. Right-click the sticker in Messages (on a Mac) and select Open. This will open the sticker as an image in Preview.
  3. Save the image.

However, there are some 'poses' that are available in the macOS Memoji editor that are not available as stickers in iMessage:

macos-profile-picture-extractor's People

Contributors

peterwroot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.