{"repo":"golota60/fixelart","free":true,"listed":false,"github":"https://github.com/golota60/fixelart","clone":"git clone https://github.com/golota60/fixelart.git","description":"💡 Tool to fix AI-generated pixelart","language":"TypeScript","stars":41,"topics":["game","pixelart","ai","game-2d","game-development","gamedev","fixelart","ai-art"],"license":null,"category":"game-templates","readme_excerpt":"fixelart A simple utility to fix AI-generated pixelart. Read about how it came to be(and see examples) here or use the playground Input Fixelified outputs :------------------------------------------------------------------: :------------------------------------------------------------------: Fixelart can be run directly as a CLI with npx , or installed and imported as a JavaScript/TypeScript library. CLI usage Run without installing: By default this writes sprite-fixed.png beside the input image. Existing output files are overwritten. CLI options - : PNG file to process. - -pw, --pixel-width : required positive integer block width. - -ph, --pixel-height : required positive integer block height. - -a, --algo : required processing algorithm. - -o, --output : optional output path. - -t, --tolerance : optional non-negative majority-color tolerance; defaults to 1 . - --shrink : output one real pixel per processed block. Algorithm names are case-insensitive. Supported values are majority , average , harmonic , geometric , midrange , quadratic , cubic , alg05 , alg10 , alg20 , alg30 , alg40 , alg50 , alg60 , alg70 , alg80 , and alg90 . Example with optional controls: Library installation Using yarn or npm Library usage The fixImage function accepts an object with the following structure Strategies Below you can find all the existing strategies and what they do underneath the hood. PRs are open for more! - Strategies.MAJORITY - take the color that occurs the most often in the block -","default_branch":null,"files":null,"tree":[],"storefront":"/r/golota60","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/golota60/fixelart/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}