{"id":22218583,"url":"https://github.com/megahertz/node-purified-image","last_synced_at":"2025-07-27T14:32:50.654Z","repository":{"id":66074179,"uuid":"59770413","full_name":"megahertz/node-purified-image","owner":"megahertz","description":"Load, save and draw on image with API similar to HTML Canvas Context 2D. No native dependencies.","archived":false,"fork":false,"pushed_at":"2021-04-08T14:51:46.000Z","size":164,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T11:02:03.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/megahertz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-26T17:38:10.000Z","updated_at":"2023-03-17T12:05:52.000Z","dependencies_parsed_at":"2023-02-20T19:00:47.726Z","dependency_job_id":null,"html_url":"https://github.com/megahertz/node-purified-image","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/megahertz/node-purified-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megahertz%2Fnode-purified-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megahertz%2Fnode-purified-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megahertz%2Fnode-purified-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megahertz%2Fnode-purified-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/megahertz","download_url":"https://codeload.github.com/megahertz/node-purified-image/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megahertz%2Fnode-purified-image/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267370652,"owners_count":24076463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T22:27:11.429Z","updated_at":"2025-07-27T14:32:50.647Z","avatar_url":"https://github.com/megahertz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-purified-image\n[![Build Status](https://travis-ci.org/megahertz/node-purified-image.svg?branch=master)](https://travis-ci.org/megahertz/node-purified-image)\n[![npm version](https://badge.fury.io/js/purified-image.svg)](https://badge.fury.io/js/purified-image)\n\n## Description\n\nLoad, save and draw with API similar to HTML Canvas Context 2D.\nNo native dependencies. Wrap \n[PureImage](https://github.com/joshmarinacci/node-pureimage) library.\n\n## Requirements\n - node \u003e= 8\n\n## PureImage\n\nPureImage is a pure JavaScript implementation of image drawing and encoding\nAPI, based on HTML Canvas, for NodeJS. It has no native dependencies.  \n\nCurrent features:\n\n - set pixels\n - stroke and fill paths (rectangles, lines, quadratic curves, bezier curves, arcs/circles)\n - copy and scale images (nearest neighbor)\n - import and export JPG and PNG from streams using promises\n - render basic text (no bold or italics yet)\n - anti-aliased strokes and fills\n - transforms\n - standard globalAlpha and rgba() alpha compositing\n - clip shapes\n\n## Installation\n\nInstall with [npm](https://npmjs.org/package/purified-image):\n\n    npm install purified-image\n\n## Usage\n\n```js\nconst Image = require('purified-image');\n\nlet image = new Image('img/template.png');\nimage\n  .loadFont('/res/OpenSans.ttf')\n  .draw(ctx =\u003e {\n    ctx.fillStyle = '#000000';\n    ctx.font = '20 Open Sans';\n    ctx.fillText('example', 30, 30);\n  })\n  .save('out.jpg')\n  .then(() =\u003e console.log('saved'));\n```\n    \n## API\n[class Image](docs/api-Image.md)\n\n## License\n\nLicensed under MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegahertz%2Fnode-purified-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegahertz%2Fnode-purified-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegahertz%2Fnode-purified-image/lists"}