Hi, I have a photo from an external device that I've already copy from PHAsset (the file size is the same), then when I restore that one with the function UIImageWriteToSavedPhotosAlbum for saving it into the iPhone photos library back. The quality is still ok but the file size has been changed.
I tested several photos and here is some results: 2.56 MB => 3.73 MB
2.07 MB => 3.24 MB
2.21 MB => 3.41 MB
I don't know what is going on. Somebody can help me with this?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi, Is there a way to fetch files of Apple Pages and Apple Numbers?
Hi, when I use UIImageWriteToSavedPhotosAlbum the photo, the photo is still ok but the file size was down from 2MB to 1.96MB.
My client needs the correct answer, why it's happening.
Anyone can help me?
Hi, I have a video file of about 4GB.
When I try to read the file by using the function Data(contentsOf: URL, options: Data.ReadingOptions). It will be leak memory and crash the app.
How can I control this issue?
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Mobile Core Services
Files and Storage
Swift
Xcode
Hi, I have a video .MOV file in external storage.
After I copy it from my external storage into my phone and using : PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: URL) that was successful save into Photo app and the thumbnail at this moment is the first frame of video.
After a short period of time, the thumbnail of video auto changes into the other frame.
Hi,
I share a video which gets from PHImageManager.default().requestAVAsset that I use UIActivityViewController for sharing.
The debug gives the error: "Operation not permitted" UserInfo={NSLocalizedDescription=Could not create sandbox extension of type com.apple.app-sandbox.read for URL /var/mobile/Media/DCIM/101APPLE/IMG_1416.MOV} which the iOS 14.0 not appear.
I don't know why happening. Any suggestion, how can I fix it?