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

pbj

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pbj

tiny, stupid bitmap image format

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

PBJ

PBJ is a really tiny, stupid image format for (monochrome) bitmaps. It's comparable to the PBM file format but it's even more trivial. The format goes like this:

  1. The width of the image as an unsigned, little-endian 16-bit integer.
  2. The height of the image as an unsigned, little-endian 16-bit integer.
  3. The bits of the image, ordered from left to right and top to bottom, packed eight to a byte. If the number of bits in an image is not an even multiple of eight, the extraneous bits in the last byte of the image are ignored.

It's not a very space-efficient format, but that's why God invented GZIP. If you pass this library a file ending in ".pbj.gz" or ".pbjz", it will decompress it for you.

We have, at times, used it in place of PNGs as a storage format since it's much more efficient to work with.

License

To the extend possible by law, The Dark Sky Company, LLC has waived all copyright and related or neighboring rights to this library.

FAQs

Package last updated on 11 Jul 2017

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