{"library":"pixeloe","title":"PixelOE (Detail-Oriented Pixelization)","description":"PixelOE is a Python library for detail-oriented image pixelization based on a contrast-aware outline expansion algorithm. It's designed to create pixel art-style images while preserving key details. The current version is 0.1.4, and the library appears to be actively maintained with releases as features and improvements are developed.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install pixeloe"],"cli":null},"imports":["import pixeloe\noutput_image = pixeloe.pixelize(...)"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from PIL import Image\nimport pixeloe\nimport os\n\n# Create a dummy image for demonstration\nimg_path = \"example_input.png\"\nImage.new('RGB', (100, 100), color = 'red').save(img_path)\n\n# Load the image\nimg = Image.open(img_path).convert(\"RGB\")\n\n# Pixelize the image with specified parameters\n# pixels: size of pixelization blocks\n# contrast: contrast awareness level\n# outline: whether to include outlines\n# levels: number of color levels to quantize to\nout_img = pixeloe.pixelize(img, pixels=8, contrast=250, outline=True, levels=8)\n\n# Save the output image\noutput_path = \"pixelized_output.png\"\nout_img.save(output_path)\nprint(f\"Original image saved to {img_path}\")\nprint(f\"Pixelized image saved to {output_path}\")\n\n# Clean up dummy image\nos.remove(img_path)","lang":"python","description":"This quickstart loads an image (a dummy one created for the example), applies the `pixelize` function with common parameters, and saves the resulting pixelized image. The `pixelize` function takes a `PIL.Image` object as input and returns a new `PIL.Image` object.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}