5

I want to use the Photos.app option "Optimize Mac Storage" to free up space on my Mac, rather than downloading my entire iCloud Photos Library to my small laptop SSD.

Is there any way to strictly limit the space given to the Photos library?

I want to give, say, 40 GB to Photos. The app can "optimize" that space as it sees fit, but I never want it to take more than 40 GB.

iCloud Photos > Optimize Mac Storage

If your Mac is low on space, full-resolution photos and videos are automatically replaced with smaller, device-sized versions. Full-resolution versions can be downloaded from iCloud anytime.

  • Can putting it on a new volume of limited size work? That's a very leap-y guess. – ankii Sep 28 '19 at 6:27
8

Limiting Photos iCloud Photos Library sizes was discussed on Accidental Tech Podcast:

https://atp.fm/episodes/334 (1:36:45)
https://atp.fm/episodes/335 (0:04:20)

They originally suggested using a Sparse Disk Image with a size quota.

Follow-up suggested instead using an APFS Space-Sharing volume.

Hey, others may have said this, but don’t use a sparse image for your photo library. Add an APFS volume with a 30GB quota instead. Much, much safer! (twitter)


APFS Space-Sharing Volume

In Disk Utility, select Add APFS Volume..

APFS volumes share storage space within their container.

Add APFS volume to container

Set a Quota Size to strictly limit the size of the new volume:

Size Options

APFS Volumes share storage space within their container. The optional reserve size ensures that amount of storage will remain available for this volume. The optional quota size limits how much storage this volume can allocate.

Set a Quota Size

When you move your Photos library, your iCloud photos will only be permitted to fill this Quota Size set for the volume.


Move Photos Library

Finally, move your Photos library file to the new size-limited volume.

Quit Photos.app > Move the library file > Hold Option and relaunch Photos > Pick the library’s new location > Photos Preferences > Use as System Photo Library

How to put Photos.app main library on an external disk?

Or, start a new Photos library on the volume and allow iCloud to re-download your photos.

| improve this answer | |
  • what happens if you take like 10 new photos after partition is full? – jmh Nov 24 '19 at 20:29
  • @jmh probably what happens in iPhone. No more sync. Disk full. – ankii Dec 3 '19 at 9:19
  • @jmh it should "optimize" the space by offloading full pics and downsizing to thumbnails in their place. – pkamb Dec 3 '19 at 20:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .