Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
PNG image decoder and encoder written entirely in JavaScript.
Maintained by Zakodium
$ npm install --save fast-png
decode(png[, options])
png
- A TypedArray or Buffer that contains the PNG data.options
- An object of optionscheckCrc
- If set to true
, the CRC will be checked for each chunk and an error will be thrown in case it's wrong (default: false).encode(image)
png
- An object representing the image. You can pass an ImageData from the Canvas API or an object with the following properties:
width
- The width of the imageheight
- The height of the imagedata
- An array or TypedArray with the image datadepth
- A number indicating the color depth (only 8 and 16 are supported now). Defaults to 8.channels
- Number of channels, including alpha (1, 2, 3 and 4 are supported). Defaults to 4.Spec can be found at: https://www.w3.org/TR/PNG/
FAQs
PNG image decoder and encoder written entirely in JavaScript
The npm package fast-png receives a total of 22,614 weekly downloads. As such, fast-png popularity was classified as popular.
We found that fast-png demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.