There are many pre-install programs and features within the mac added by the manufacturer to make it different and unique from the other devices. Photoanalysisd is a program developed by the Mac OS in 2016 to recognize the object and faces in the photo library of the MacBook.
In this article, we will explain the details of photoanalysisd and its solution to why it is using the large amount of CPU.
What is Photoanalysisd?
The photoanalysisd is the system process that recognizes the face and object of the photos in the Mac photo library and detects the faces in the device’s background. The Photoanalysisd was introduced in 2016 by macOS, Sierra, and High Sierra. Various complaints have been reported by people about the high usage of the CPU. Users who have macOS Catalina and Big Sur are still facing this problem.
Do We Need to Stop the Photoanalysisd Process or Not?
The photoanalysisd uses object and face detection technology in the background, which is why it will take the CPU usage (50%-/80%) on the new Macbooks. This process will only one time analyze all the pictures in the photo library and after analyzing all the pictures, it does not run in the background until new pictures will be added to the photo library. In some cases; it will cause the problem of the consistent fan running. If this produces problems for your device, such as high CPU usage and consistent fan running, then kill the photoanalysisd process.
When does this Problem Occur?
When the photoanalysisd is analyzing the photos in the photo library, it takes time depending on the number of photos. For example, analyzing 1000 photos takes less time as compared to analyzing 200k photos; In such scenarios, it will take weeks to complete the process and will cause consumption of the CPU heavily.
How to Stop/Disable the Background Activity of Photoanalysisd?
When the device runs slow, and the fan constantly runs, consider disabling the photoanalysisd. There are various solutions available to disable the photoanalysisd and some of the most common are given below:
Some steps are different for older mac devices and some newly updated ones.
Solution 1. Disable the Photoanalysisd Through the Terminal
From the mac keyboard, press/hold “Command + SpaceBar” and write “terminal”; a terminal will appear before you within the spotlight search list. Simply hit on it and enter the blow-mention code to disable the GUI instance.
launchctl disable gui/$UID/com.apple.photoanalysisd && launchctl kill -TERM gui/$UID/com.apple.photoanalysisd
Commands for Disabling the service:
launchctl disable user/$UID/com.apple.photoanalysisd && launchctl kill -TERM user/$UID/com.apple.photoanalysisd
Running these commands within the terminal will result in disabling of photoanalysisd service as well as the GUI Instance.
Solution 2: Removing the Photoanalysisd File
There are three parts to removing the photoanalysisd file, which is stated below:
Part 1: Turn off the System’s Integrity protection
- First, Turn off the Macbook.
- Now, press and hold the “Command and R key” until it reboots into recovery mode.
- After that, select the “Utilities” option and then select the “Terminal” option.
- Next, type “csrutil disable”
- Finally, type “reboot” and the MacBook will reboot manually.
Part 2: Deleting the photoanalysisd file
- First, move to “system” and then “library”.
- Next, move to “private frameworks” and then “PhotoAnalysis.framework”.
- After that, move to “Version/A/Support”
- Finally, find the photoanalysisd file and remove it.
Part 3: Reactive the System Integrity Protection
- Turn off the MacBook again.
- Then, keep the “command and R key” pressed until it reboots into recovery mode.
- After that, select “Utilities” and then click on “terminals”.
- Next, type “csrutil enable”.
- Finally, type “reboot”; it will manually reboot the MacBook.
Bonus Tip: How to Manually identify the photos
We can also help the processor by manually identifying the faces on the photo. This solution will not use a large amount of CPU usage. To manually identify the face, follow the steps stated below.:
- First, open the “Photos App” on the Mac device.
- Then, double-click the picture that we want to identify.
- Next, click the “i button” from the toolbar.
- After that, click on the “plus (+) sign”.
- Finally, select the add faces option and add the name of the faces.
- For Catalina OS, start the photos and click on “Preferences” from the app menu.
- Now, click on the “General” option.
- Finally, untitled both checkboxes in the memories and close the photos.
We have covered two efficient solutions for disabling the photoanalysisd from the mac. Moreover, we have also provided a bonus tip in which we have learned how to identify the photos manually after disabling the photoanalysisd.
The photoanalysisd is the program that detects the object and face in the photo library of the Macbook. This process uses face detection technology to analyze the photo and it utilizes a large amount of CPU. If there are thousands of pictures to analyze, it will slow down the device and increases the fan speed. We can simply disable the photoanalysisd using the terminal by running a command which is explained above. In this blog, we have learned the details of what is photoanalysisd and the what are solutions to “photoanalysisd consuming CPU excessively”.