-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't get data from assets in new version #53
Comments
Could you try the fixed syntax: In addition, if the |
I have another question, how could I get the NSURL of the photo choosed? |
Hi @Boli-CS |
Why the fetchImageWithSize method return other size?? |
and how can I get NSData from AVURLAsset? |
Hi @Casporro assets.first?.fetchAVAssetWithCompleteBlock({ (avAsset) -> Void in
let data = NSData(contentsOfURL: avAsset!.URL)
print(data)
}) |
For the _Why the fetchImageWithSize method return other size??_ It's my fault! Fixed in 78d4e8c :) |
Thank you @zhangao0086, nice library and nice work. |
Can you tell me how can I get a thumbnail from avAsset? |
@Casporro |
hi zhangao0086, i want to ask some questions How can i get images from assets ? |
Hi @melihkeskin assets.first?.fetchFullScreenImageWithCompleteBlock({ image in
print(image)
}) |
Hello again :), thank you for your reply what can i do multiple picking ? and last question :) how can i get didFinishPickingMediaWithInfo |
@melihkeskin var images: [UIImage] = []
for asset in assets {
asset.fetchFullScreenImageWithCompleteBlock({ image in
images.append(image!)
if images.count == assets.count {
print("done")
}
})
} Why do you want to get |
Thank for help. I want to get metadata of the images. |
@melihkeskin if let originalAsset = asset.originalAsset {
originalAsset.mediaType
originalAsset.mediaSubtypes
originalAsset.creationDate
originalAsset.modificationDate
// ...
} See also: Reading Asset Metadata |
Hello zhangao0086, i appreciate you. You are really good my friend. |
@melihkeskin |
In 3.0.4, I've updated the asset.fetchImageWithSize(size, completeBlock: { image in
// ...
}) to: asset.fetchImageWithSize(size, completeBlock: { image, info in
// ...
}) |
With the new version (3.0.0) I can't get NSData from assets... If I do this:
data is always nil an image never is nil... What is the problem?
The text was updated successfully, but these errors were encountered: