{"id":16967162,"url":"https://github.com/phaticusthiccy/unstabilizer","last_synced_at":"2026-02-13T23:01:45.006Z","repository":{"id":234275127,"uuid":"788333180","full_name":"phaticusthiccy/Unstabilizer","owner":"phaticusthiccy","description":"Pixel editing algorithm that disrupts pixel level for fine tuning ai training process.","archived":false,"fork":false,"pushed_at":"2024-04-19T15:09:08.000Z","size":10460,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-23T12:22:43.550Z","etag":null,"topics":["ai","image-manipulation","image-processing","unstabilizer","vision"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phaticusthiccy.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":"2024-04-18T08:02:06.000Z","updated_at":"2024-05-03T12:05:42.000Z","dependencies_parsed_at":"2024-04-18T18:24:45.757Z","dependency_job_id":"d5c1206c-19cb-4fdc-9871-b232caaa2561","html_url":"https://github.com/phaticusthiccy/Unstabilizer","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"a31a6472defd090aa013519c73a14530ca3a269c"},"previous_names":["phaticusthiccy/unstabilizer"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaticusthiccy%2FUnstabilizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaticusthiccy%2FUnstabilizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaticusthiccy%2FUnstabilizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaticusthiccy%2FUnstabilizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phaticusthiccy","download_url":"https://codeload.github.com/phaticusthiccy/Unstabilizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361927,"owners_count":20926684,"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","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":["ai","image-manipulation","image-processing","unstabilizer","vision"],"created_at":"2024-10-14T00:07:46.151Z","updated_at":"2026-02-13T23:01:39.977Z","avatar_url":"https://github.com/phaticusthiccy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unstabilizer\n[![NPM Version](https://img.shields.io/npm/v/unstabilizer)](https://www.npmjs.com/package/unstabilizer)\n![NPM Downloads](https://img.shields.io/npm/dw/unstabilizer)\n![Build status](https://ci.appveyor.com/api/projects/status/1kc7mwpib6fh8se4?svg=true)\n[![CodeFactor](https://www.codefactor.io/repository/github/phaticusthiccy/unstabilizer/badge)](https://www.codefactor.io/repository/github/phaticusthiccy/unstabilizer)\n[![GitHub repo size](https://img.shields.io/github/repo-size/phaticusthiccy/Unstabilizer?label=size)](https://github.com/phaticusthiccy/Unstabilizer)\n\nPixel editing algorithm that disrupts pixel level for fine tuning ai training process.\n \n## Installation\n```bash\nnpm install unstabilizer\n```\n## Tests\nFor image path \n```bash\nnpm test\n```\nFor buffer\n```bash\nnpm test --buffer\n```\n\n## Quick Example (Async)\n```javascript\nconst { getPixels, decay, createImage } = require(\"unstabilizer\")\n\n// image path or image buffer\nlet pixels = await getPixels(ArrayBuffer | String) \nlet decayData = decay(pixels)\n\n// result image\nawait createImage(decayData, \"path/to/image.png\")\n```\n\n## Documentation\n### Core methods\n\n* [getPixels()](#getpixels)\n* [decay()](#decay)\n* [createImage()](#createimage)\n\n### getPixels()\nA method of coordinating each pixel of an image to produce the colour data of that pixel.\n\n\u003e ```js\n\u003e // using buffer\n\u003e getPixels(fs.readFileSync(\"path/to/image.png\"))\n\u003e // or image path\n\u003e getPixels(\"path/to/image.png\")\n\u003e ```\n\n### decay()\nA method that arranges and mixes the payload pixels with a simple algorithm.\n\n\u003e ```ts\n\u003e decay(\n\u003e   pixelData: Object,\n\u003e   degradation_amount?: Number,\n\u003e   degradation_frequency?: Number,\n\u003e   mode?: String,\n\u003e   deathPixelInjection?: Boolean,\n\u003e   deathPixelInjectionValue?: Number\n\u003e )\n\u003e \n\u003e type pixelData = Object; // data from getPixels method (required)\n\u003e type degradation_amount? = Number | 1; // The amount of distortion to add to the image (default 1) (min 1 - max 5) \n\u003e type degradation_frequency? = Number | 20; // Frequency of the amount of distortion to be added to the image (default 20) (min 8 - max 64)\n\u003e type mode = String | \"linear\" | \"random\" | \"complex\"; // Degradation mode (default \"linear\")\n\u003e type deathPixelInjection = Boolean; // Inject death pixels to image (default true)\n\u003e type deathPixelInjectionValue = Number | 64; // Amount of death pixel to add (default 64) (min 1 - max 64)\n\u003e ```\n\n### createImage()\nA method that reads the corrupted output and converts it to an image.\n\n\u003e ```ts\n\u003e createImage(\n\u003e   imageData: Object,\n\u003e   output: String\n\u003e )\n\u003e\n\u003e type imageData = Object; // data from decay method (required)\n\u003e type output = String; // image path to save (required)\n\u003e ```\n\n\n## License\n\n### Unstabilizer\n\n(GPL-3.0 license)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nSee [license](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphaticusthiccy%2Funstabilizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphaticusthiccy%2Funstabilizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphaticusthiccy%2Funstabilizer/lists"}