Skip to content

feat(ios): add support for Photos library ph:// URIs and document sandbox limitation (#7) - #10

Merged
thangdevalone merged 4 commits into
mainfrom
feat/7-photokit-ph-source-support
Oct 7, 2026
Merged

thangdevalone merged 4 commits into
mainfrom
feat/7-photokit-ph-source-support

Conversation

@thangdevalone

Copy link
Copy Markdown
Owner

Closes #7

Summary

  • Adds native ph://<localIdentifier> support on iOS across video operations (trimVideo, cropVideo, compressVideo, concatVideos, getThumbnail, getVideoMetadata, etc.) using PHAsset.fetchAssets and PHImageManager.default().requestAVAsset.
  • Adds ph:// support for image operations (compressImage, splitImage, loadImage) via PHImageManager.requestImageDataAndOrientation.
  • Extracts video and image metadata, dimensions, duration, creation date, GPS coordinates, and file size directly from PhotoKit assets in getMediaMetadata and getThumbnail.
  • Adds Photos framework to s.frameworks in MediaToolkit.podspec.
  • Documents iOS PhotoKit sandbox restrictions and ph:// usage in README.md and README.vi.md.

@thangdevalone thangdevalone self-assigned this Oct 7, 2026
@thangdevalone
thangdevalone merged commit ecea7bf into main Oct 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Photos-library sources (ph://) — file paths from PhotoKit are not openable by AVFoundation

1 participant