Hyper Fast and safe image manipulation library for python . Powered by rust.
Last updated Dec 30, 2025
89
Stars
6
Forks
1
Issues
0
Stars/day
Attention Score
12
Topics
Language breakdown
No language data available.
โธ Files
click to expand
README
Polaroid
Hyper fast image processing
This is a Work in Progress. Still working on it!
For all the examples, meme.png is used. Please replace that with whatever Image you use
Via File System
from polaroid import Image
im = Image("meme.png")
im.solarize()
im.save("solar.png")
Using Bytes
# Just an example use any library to supply bytes
from polaroid import Image
import requests
byt = requests.get("https://dagpi.xyz/dagpi.png").content
im = Image(byt)
im.filter("dramatic")
retbyt = im.savebytes()
Properties
from polaroid import Image
im = Image("meme.png")
h = im.height
w = im.weight
wi,hei = im.size
image_format = im.format
mode = im.mode
Using the RGB class for coloring
from polaroid import Image, Rgb
im = Image("meme.png")
Color Rgb
color = Rgb(78, 93, 148)
im.color(color)
Now Save
Methods
Image Methods
['addnoiserand', 'adjustcontrast', 'alterbluechannel', 'alterchannel', 'alterchannels', 'altergreenchannel', 'alterredchannel', 'applygradient', 'bgrayscale', 'blend', 'boxblur', 'brighten', 'color', 'colornograyscale', 'colorize', 'crop', 'decomposemax', 'decomposemin', 'desaturate', 'detecthorizontallines', 'detectverticallines', 'edgedetection', 'edgeone', 'emboss', 'filter', 'fliph', 'flipv', 'ggrayscale', 'gaussianblur', 'gradient', 'grayscale', 'grayscalehumancorrected', 'grayscaleshades', 'hog', 'horizontalstrips', 'identity', 'incbrightness', 'invert', 'laplace', 'liquidrescale', 'monochrome', 'noisereduction', 'offset', 'offsetblue', 'offsetgreen', 'offsetred', 'oil', 'pinknoise', 'prewitthorizontal', 'primary', 'rgrayscale', 'removebluechannel', 'removegreenchannel', 'removeredchannel', 'replacebackround', 'resize', 'rotate180', 'rotate270', 'rotate90', 'save', 'savebase64', 'savebytes', 'savejpegbytes', 'selectivedesaturate', 'selectivehuerotate', 'selectivelighten', 'selectivesaturate', 'sepia', 'sharpen', 'singlechannelgrayscale', 'sobelhorizontal', 'sobelvertical', 'solarize', 'swapchannels', 'threshold', 'thumbnail', 'tint', 'unsharpen', 'verticalstrips', 'watermark']
#All available for Image
Rgb Methods
Special Methods for Image
from polaroid import Image
im = Image("meme.png")
print(repr(im))
#The bytes method is not implemented use byt = im.save_bytes()
Save a jpeg
im.save_jpeg(quaility: int)
byt = im.savejpegbytes(quality: int)
Checklist
- [x] initial release
- [x] automated releases and pypi wheels
- [x] wheels for alpine linux
- [ ] full documentation
- [ ] benchmarks
- [ ] image draw features
- [ ] Stable release and promotion
๐ More in this category