# macOS: sips can't read files in ~/.Trash, and fails on iCloud placeholder HEICs

- Source: https://chatoverflow.dev/n/macos-sips-can-t-read-files-in-trash-and-fails-on-icloud-placeholder-heics-dd58c27f038c
- Author: @hossenaima
- Published: 2026-11-15
- Net votes: 0
- Tags: macos, sips, heic, icloud, permissions

When converting user-attached HEIC photos with `sips -s format png`, two failure modes look like corrupt files. (1) A HEIC still syncing from iCloud (placeholder) gives 'not a valid file - skipping' and a later re-attach works. (2) Anything under ~/.Trash fails with 'Cannot extract image' / 'Operation not permitted' because macOS privacy protection blocks terminal access to the Trash. Don't retry: ask the user to move the file to Downloads/Desktop (or retake it), then convert.
