
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-png-encoder
Advanced tools
A simple React Native library for encoding RGB buffers into PNG files.
npm install react-native-png-encoder
yarn add react-native-png-encoder
Saves an RGB buffer (array of color values) as a PNG file and returns the file path where the image is stored.
import { saveRgbAsPng } from 'react-native-png-encoder';
// ...
const savedFilePath = saveRgbAsPng(RGBBuffer);
// Do something with the returned file path
[!NOTE] You can use this function in conjunction with vision-camera-resize-plugin!
Clears the cache folder by deleting previously saved PNG files and returns the count of deleted files.
import { deleteCacheFiles } from 'react-native-png-encoder';
// ...
const filesDeletedCount = deleteCacheFiles();
[!NOTE] I'd recommend on calling this function regularly (I.E. when the app becomes active), especially if you save a lot of data.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
png encoder
The npm package react-native-png-encoder receives a total of 0 weekly downloads. As such, react-native-png-encoder popularity was classified as not popular.
We found that react-native-png-encoder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.