Questions tagged [camera-roll]

157 questions
2
votes
1 answer

React Native - How to show one specific Image from Camera Roll using TouchableHighlights

My Goal is to show the Image in that white space whenever is touched (TouchableHighlight) from CameraRoll to the . I can't find any tutorial to do this and I just have a little knowledge in JavaScript so I decided to ask a question in Stack…
2
votes
2 answers

react native - Camera Roll returned uri does not have file's extension

React native has a good lib like CameraRoll which allow us to access the media files of phones. However, the returned uri is missing the extension: { node: { timestamp: 1344461389.8, type: 'image', <= it is used to be 'image/png' instead of…
LuongTruong
  • 1,513
  • 1
  • 20
  • 37
2
votes
2 answers

How to save a Picture to a specific folder from React Native Camera Roll

So I'm using Expo's Camera API to take a picture, like so: takePicture = async function() { if(this.camera) { this.camera.takePictureAsync().then(data => { CameraRoll.saveToCameraRoll(data.uri); }).then(() => { …
Socratease
  • 181
  • 3
  • 9
2
votes
2 answers

How to save SKSpriteNode as PNG image to Camera Roll?

I'm trying to convert SKSpriteNode as a PNG image with transparency to Camera Roll. This saves the image but not with transparency: let image = UIImage(cgImage: (spriteNode.texture?.cgImage())!) UIImageWriteToSavedPhotosAlbum(image, nil, nil,…
user594883
  • 1,261
  • 2
  • 14
  • 34
2
votes
0 answers

React Native CameraRoll.getPhotos

i want to query all image from my android devices, so i use the api CameraRoll.getPhotos, but my android devices has 30 images but i just query less than 30, so can you help me to? // in constructor method this.state = { source: null, …
basic_wang
  • 31
  • 2
2
votes
2 answers

iOS: Get last image from the camera roll

I want the last image saved in camera roll. I have searched for it but m getting result for ALAssetsLibrary which is deprecated in iOS 9 so please provide me solution for this because m not getting proper solution for that. I want solution in…
Bhagyashree mahajan
  • 511
  • 1
  • 6
  • 12
2
votes
1 answer

Swift observer pattern when photo library changes

Currently, I have that piece of code: import Photos public class AssetService : NSObject, PHPhotoLibraryChangeObserver { public override init() { super.init() PHPhotoLibrary.sharedPhotoLibrary().registerChangeObserver(self) } deinit { …
mafioso
  • 1,480
  • 3
  • 18
  • 42
2
votes
0 answers

React Native using CameraRoll

In React-native I am trying to access videos and images saved on CameraRoll but when I fetch records I only retrieve images stored by whatsapp. I tried to use groupTypes param for fetching everything, but it seems like this param is not supported by…
cubbuk
  • 7,410
  • 4
  • 29
  • 59
2
votes
1 answer

iOS 9 save gif to photo library

Now that AssetsLibrary has been deprecated, we're supposed to use the photos framework, specifically PHPhotoLibrary to save images and videos to a users camera roll. Using ReactiveCocoa, such a request would look like: func saveImageAsAsset(url:…
barndog
  • 6,314
  • 8
  • 45
  • 90
2
votes
2 answers

iOS - open photo from photo album in my app

I would like to let users browse photos in their photo albums, tap the action button, and share/open selected photos in my app. Some apps (like Viber and WeChat) provide a custom view to handle this. This is the WeChat screen: What is the name of…
2
votes
0 answers

Export Video from Application's Document to cameraRoll

I Just want to export .mp4 file to CameraRoll Here is my code. self.videoPath=@"/var/mobile/Applications/AE75E729-7F10-478B-9DAF-E730EB4231D1/Documents/Videos/aa.mp4"; AVURLAsset *avAsset = [AVURLAsset URLAssetWithURL:[NSURL…
2
votes
3 answers

Save nsdata(mp4 video) to camera roll

I have to save video to camera roll , video is in the form of nsdata . I know that is the method UISaveVideoAtPathToSavedPhotosAlbum(videopath, self, @selector(video:didFinishSavingWithError:contextInfo:), nil); - (void)video:(NSString *)videoPath…
zohaibkhan
  • 227
  • 1
  • 2
  • 12
2
votes
2 answers

Feathers / Starling / AS3 / Air - Texture too big (max is 2048x2048) - Camera Roll

When I try to load a photo from the Camera Roll. I get the following message: Error #3683: Texture too big (max is 2048x2048). The following code is what I'm using with Feathers/Starling: var Image_Loader:ImageLoader = new…
2
votes
1 answer

Accessing Camera Roll from Browser in iOS

I am working on an in-browser web application which needs to upload a user's photo from the camera roll but i can't seem to figure it out. I have researched this subject and all the answers i am finding state that you can't access the camera roll…
hfrog713
  • 273
  • 1
  • 5
  • 16
2
votes
2 answers

populating tableview with camera roll images

I'm trying to populate images from camera roll in a tableview. in ViewDidLoad, I create an asset group. - (void)viewDidLoad { [super viewDidLoad]; self.tableView.delegate = self; self.tableView.dataSource = self; self.assetsLibrary =…
CalZone
  • 1,555
  • 1
  • 14
  • 28
1 2
3
10 11