Skip to content

Filters

Scrimage comes with a wide array of filters. A filter modifies the pixels of an image in some pre-determined way. For example, a simple filter might reduce the brightness of each pixel by 50%.

Most of these filters I have not written myself, but rather collected from other open source imaging libraries (for compliance with licenses and / or attribution - see file headers), and either wrapped them, fixed bugs or improved them.

Note

These filters require the scrimage-filters module to be added to your build.

Applying a filter returns a new image. The original image is unmodified. Some filters have options which can be set when creating the filters. All filters are immutable. Most filters have sensible default options as default parameters.

To apply a filter, we just use the filter method on an image, for example:

ImmutableImage filtered = image.filter(new DitherFilter())
val filtered = image.filter(DitherFilter())
val filtered = image.filter(new DitherFilter())

Click on the small images to see an enlarged example.

Filter Original Filter
1977
aden
alpha_mask
amaro
ashby
background_blend
black_threshold
blur
border
brannan
brightness
brooklyn
bump
caption
caustics
charmes
chrome
clarendon
color_halftone
colorize
contour
contrast
crema
crystallize
despeckle
diffuse
dissolve
dither
dogpatch
dominant_gradient
earlybird
edge
emboss
erode
error_diffusion_halftone
error_spotter
gain_bias
gamma
gaussian
gingham
ginza
glint
glow
gotham
grayscale
hefe
helena
hsb
hudson
inkwell
invert
invert_alpha
juno
kaleidoscope
kelvin
laplace
lark
lensblur
lensflare
lofi
ludwig
maven
maximum
mayfair
minimum
mirror
moon
motionblur
nashville
noise
noise_reduction
offset
oil
old_photo
opacity
perpetua
pixelate
pointillize_square
poprocket
posterize
prewitt
quantize
rays
reyes
rgb
ripple
rise
roberts
rylanders
salt_and_pepper
sepia
sharpen
sierra
skeleton
skyline
slumber
smear_circles
snow
sobels
solarize
sparkle
split_channels
stinson
summer
sutro
swim
television
threshold
toaster
tritone
twirl
unsharp
valencia
vesper
vignette
vintage
walden
watermark
watermark_cover
watermark_stamp
willow
xpro_ii