How to capture effected image and save it to file?
See original GitHub issueHello!
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:
- Created 6 years ago
- Reactions:4
- Comments:93 (62 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any news on the backporting for non-expo users?
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^^)