Questions tagged [camera-roll]

171 questions
4
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,329
  • 2
  • 17
  • 36
4
votes
1 answer

iOS, how to keep Photo Sphere XMP Metadata while saving it to Camera Roll?

I am able to add the Photo Sphere XMP Metadata to an equirectangular photo. I uploaded the photo with the XMP metadata to Google Photos, and the Google Photos is able to be recognized as a sphere photo. Then, I tried to save the photo with the XMP…
srjohnhuang
  • 232
  • 5
  • 18
4
votes
1 answer

React Native save a http Image to Android camera roll

Here are some images from websites and I want to save them to Android camera roll. I found out that React Native has an function CameraRoll.saveImageWithTag which could save certain image into the camera roll, but the param tag should be a local…
VaJoy Larn
  • 113
  • 13
4
votes
0 answers

CameraRoll api not returning all pictures in album

I'm using the CameraRoll api (getPhotos) to fetch pictures from a specific album. Unfortunately, when I call getPhotos (with any combination of first:number) params, I don't always get all the pictures in the album. I usually have to make the…
4
votes
1 answer

Saving gif file created from screenshots to camera roll

I've got a gif in my documents folder I would like users of the app to be able to access and email to use on other platforms that support gif animation. I generated the gif file using information from this post... Create and and export an animated…
3
votes
1 answer

package @react-native-camera-roll/camera-roll stopped working

camera-roll stopped working. I've got an error while build the app. android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:17: error: package undefined does not exist import undefined.CameraRollPackage; screen with…
3
votes
2 answers

How to save images in camera roll in iphone programmatically?

I am developing one application. In that I want to save my pictures in camera roll. So how to save my pictures in camera roll through code?
user777021
  • 75
  • 2
  • 8
3
votes
0 answers

Updating EXIF data to save media with latest date on IOS react-native

While I am downloading a photo from URL to Camera Roll, photo get saved with created date on IOS device, I need photo to be saved with current date. I need to modify the original exif metadata of the photo file. Is there any way to save the photo to…
devdoubts
  • 31
  • 1
3
votes
1 answer

Use CameraRoll.saveToCameraRoll to save image to an album?

I'm using RNCamera and its working great(Below is my function). I can take images and save them to the photo gallery. Although anyone have insight on how to save to a specific album on IOS? I've seen solutions for Android, there are no options for…
yazmnh87
  • 316
  • 5
  • 12
3
votes
2 answers

CameraRoll on Android

Is there anybody who used the CameraRoll API for Android devices? Is Android supported ? I used the example from the docs, but it's not working. Thanks in advance.
Marius
  • 76
  • 1
  • 5
3
votes
1 answer

Get Static Path for an Asset in react native

In my react native app i am showing several images in tags and i load those images from local folder. I want to save image when the user tapped on it. I can get which image user tapped…
Janith Ganewatta
  • 143
  • 1
  • 4
  • 12
3
votes
0 answers

Image rotated in app and firebase (implementing ExifInterface)

I am working on uploading a photo for user profiles. The goal is to have it both show in the app as a preview, and send it to the database. I am able to do that successfully, however some photos are showing rotated 90 degrees. I looked up some…
ImTheNun
  • 167
  • 1
  • 10
3
votes
2 answers

How to get file name from asset uri in React Native

I want to be able to get the file name and type from an image from my camera roll. Here is the link to the file: "assets-library://asset/asset.JPG?id=ED7AC36B-A150-4C38-BB8C-B6D696F4F2ED&ext=JPG" How do I extract the file name and mime type from…
Awa Desmoline
  • 495
  • 4
  • 26
3
votes
1 answer

React native rendering camera roll images efficiently

I'm using the Camera Roll library that comes with react native to load a grid of all a user's local images. However, the api call is slow to not only grab the local data (pulling in a couple hundred images) and it is also slow to render the…
SingularJon
  • 31
  • 1
  • 3
3
votes
0 answers

React Native CameraRoll getPhotos optimization

When calling the getPhotos function on the React Native CameraRoll, is there a best practice for how many photos to fetch at once? CameraRoll.getPhotos({ first: 10000, assetType: 'Photos', }) I want to get every photo off a user's device…
Onaracs
  • 935
  • 3
  • 14
  • 22
1
2
3
11 12