How lord-samuel/pixcore works
pixcore is a chainable Node.js image-processing and canvas library. Its main workflow is to read and decode an image into a PixCore instance, apply pixel transforms, then encode a buffer; optional branches handle animated WebP frames and sticker EXIF metadata. Canvas drawing is a separate creation path that uses color parsing, rasterization, font/emoji rendering, and can produce an image for the same processing and encoding API. Relationships are limited to calls shown in excerpts or capabilities explicitly described in the README; unsampled internals are not inferred.
Main entry points: index.js PixCore API · canvas.js Canvas API · decode.js Image Decode · encode.js Image Encode
Components 11
Image I/O
- PixCore API
index.js - Image Decode
src/decode.js - Image Encode
src/encode.js
Image Processing
- Pixel Operations
src/ops.js
Animation & Stickers
- Animated WebP
src/animated.js - Sticker EXIF
src/exif.js
Canvas Rendering
- Canvas API
src/canvas.js - Color Parser
src/color.js - Rasterizer
src/raster.js - Emoji Fonts
src/emoji.js
Other components
- Library User
Connections 13
- Library User → PixCore API: uses
README.md - PixCore API → Image Decode: decodes input
index.js - PixCore API → Pixel Operations: applies transforms
index.js - PixCore API → Image Encode: encodes output
index.js - PixCore API → Sticker EXIF: adds metadata
index.js - Image Decode → Animated WebP: decodes frames
src/decode.js - Image Encode → Animated WebP: builds animation
src/encode.js - PixCore API → Canvas API: creates canvas
index.js - Canvas API → Color Parser: parses colors
src/canvas.js - Canvas API → Rasterizer: rasterizes shapes
src/canvas.js - Canvas API → Emoji Fonts: loads emoji
src/canvas.js - Canvas API → Pixel Operations: resizes glyphs
src/canvas.js - Canvas API → Image Decode: decodes glyphs
src/canvas.js