@richardmcquiston01/core-image
v0.4.0
Published
Image processing core (filters, heightmaps, pixel I/O) for laser/CNC/maker workflows
Maintainers
Readme
@richardmcquiston01/core-image
Image processing core for laser, CNC and other maker-machine workflows: a filter registry (dithering, tone, edge/morphology, effects such as blur, sepia and duotone, transforms, test grids), image I/O helpers, and grayscale heightmap-to-STL conversion.
Part of maker-image-tools.
Install
npm i @richardmcquiston01/core-imageUsage
import {
createFilterRegistry,
imageToHeightmapStl,
loadImageData,
} from "@richardmcquiston01/core-image";
const image: ImageData = await loadImageData(blob);
const registry = createFilterRegistry();
const stl: string = imageToHeightmapStl(image);Requires an environment with ImageData (browser, or a polyfill in Node). ESM only.
License
MIT
