Expand description
Image manipulation effects in HSL, HSLuv, LCh and HSV.
Functions§
- darken_
hsl - Darken the image by a specified amount in the HSL colour space.
- darken_
hsluv - Darken the image by a specified amount in the HSLuv colour space.
- darken_
hsv - Darken the image’s colours by a specified amount in the HSV colour space.
- darken_
lch - Darken the image by a specified amount in the LCh colour space.
- desaturate_
hsl - Desaturate the image by a specified amount in the HSL colour space.
- desaturate_
hsluv - Desaturate the image by a specified amount in the HSLuv colour space.
- desaturate_
hsv - Desaturate the image by a specified amount in the HSV colour space.
- desaturate_
lch - Desaturate the image by a specified amount in the LCh colour space.
- gamma_
correction - Applies gamma correction to an image.
- hsl
- Image manipulation effects in the HSL colour space.
- hsluv
- Image manipulation effects in the HSLuv colour space
- hsv
- Image manipulation in the HSV colour space.
- hue_
rotate_ hsl - Shift hue by a specified number of degrees in the HSL colour space.
- hue_
rotate_ hsluv - Shift hue by a specified number of degrees in the HSLuv colour space.
- hue_
rotate_ hsv - Shift hue by a specified number of degrees in the HSV colour space.
- hue_
rotate_ lch - Shift hue by a specified number of degrees in the LCh colour space.
- lch
- Image manipulation effects in the LCh colour space
- lighten_
hsl - Lighten an image by a specified amount in the HSL colour space.
- lighten_
hsluv - Lighten an image by a specified amount in the HSLuv colour space.
- lighten_
hsv - Lighten an image by a specified amount in the HSV colour space.
- lighten_
lch - Lighten an image by a specified amount in the LCh colour space.
- mix_
with_ colour - Mix image with a single color, supporting passing
opacity
. The algorithm comes from Jimp. Seefunction mix
andfunction colorFn
at following link: https://github.com/oliver-moran/jimp/blob/29679faa597228ff2f20d34c5758e4d2257065a3/packages/plugin-color/src/index.js Specifically, result_value = (mix_color_value - origin_value) * opacity + origin_value = mix_color_value * opacity + (1 - opacity) * origin_value for each of RGB channel. - saturate_
hsl - Increase the image’s saturation by converting each pixel’s colour to the HSL colour space and increasing the colour’s saturation.
- saturate_
hsluv - Increase the image’s saturation in the HSLuv colour space.
- saturate_
hsv - Increase the image’s saturation in the HSV colour space.
- saturate_
lch - Increase the image’s saturation in the LCh colour space.