Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pnglib

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pnglib

A PNG lib for Node.js

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26K
increased by5.34%
Maintainers
1
Weekly downloads
 
Created
Source

#PNGLib A PNG lib for Node.js

A handy class to calculate color values.

 version 1.0
 author Robert Eisele <robert@xarg.org>
 copyright Copyright (c) 2010, Robert Eisele
 link http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/
 license http://www.opensource.org/licenses/bsd-license.php BSD License

Modified by George Chan gchan@21cn.com

##Install

npm install pnglib

##Examples

var pnglib = require('pnglib');
var p = new pnglib(300,100,8);
var lineIndex = p.index(10,25);
p.buffer[lineIndex+j]='\x01';
p.color(0, 0, 0, 0);  // First color: background (red, green, blue, alpha)
p.color(80, 80, 80, 255); // Second color: paint (red, green, blue, alpha)

More example see: https://github.com/GeorgeChan/captchapng

Keywords

FAQs

Package last updated on 20 Aug 2013

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc