question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to capture effected image and save it to file?

See original GitHub issue

Hello!

In v2 we’ve had captureFrame function. https://github.com/ProjectSeptemberInc/gl-react-native/blob/cf77646239ee1c9d6002c28cb8864cb65d2de898/src/GLCanvas.js#L55

But there is no such function in “v3”, right? Or I can save image with capture() somehow?

Please help.

I’ve asked something similar in “v2” repo: https://github.com/ProjectSeptemberInc/gl-react-native/issues/96

question

library version: gl-react/next + gl-react-native/next

gl-react@3.0.0-alpha.6
gl-react-native@3.0.0-alpha.6

Expected behavior

Expected to find some simple function to call and save effected image to file in cache directory

refs.surface.captureFrame({
       type: 'jpg'
       format: 'file'
       quality: 1
       filePath: "#{RNFS.DocumentDirectoryPath}/#{new Date().getTime()}.jpg"
}).then((newImageUri) =>
 ....

Actual behavior

this.refs.surface.capture()

returns array of pixels (right?)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:93 (62 by maintainers)

github_iconTop GitHub Comments

10reactions
moxxukcommented, Jan 3, 2019

Any news on the backporting for non-expo users?

9reactions
grecommented, Aug 24, 2017

if you want to help: https://github.com/gre/react-native-webgl/issues/2 gl-react-native is now backed by a new lib i’ve created (react-native-webgl) and I figured out the API but needs to implement on the back.

I have not planned this yet in my ETA ( https://github.com/gre/gl-react/issues/148 ) but it should comes after the features listed there (unless I find it easy and implement it soon^^)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Save a picture or other graphic as a separate file
Right-click the illustration that you want to save as a separate image file, and then click Save as Picture. In the Save as...
Read more >
Export still images with Final Cut Pro - Apple Support
Choose File > Share > Save Current Frame. Click the Share button in the toolbar, then click Save Current Frame. The Share button...
Read more >
Save files in graphics formats in Photoshop - Adobe Support
Choose File > Save As, choose TIFF from the Format menu, and click Save. · In the TIFF Options dialog box, select the...
Read more >
Efficiently Storing Images with Access and SQL Server
In SQL Server you have a good choice to save your files(images and others) as a record ... Your files doesn't effect in...
Read more >
Saving Images
The top section of the Save Image dialog contains a file browser for specifying output location, File name, and File type. Formats include:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found