Skip to main content

Client for the Thumbor image service which allows you to build URIs in an expressive fashion using a fluent API.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
94%
Published
2 weeks ago (0.2.0)
I
BaseThumborUrlOptions

Base options for building a URL for the Thumbor image service.Additional options are available when resizing the image, see ThumborUrlResizedOptions.

f
blur

This filter adds a blur effect to the image using the specified radius and sigma.

f
brightness

This filter increases or decreases the image brightness.

f
buildThumborUrl

Builds URL for the Thumbor image service using a fluent API.

I
Color

Describe red, green, and blue values

f
contrast

The filter increases or decreases the image contrast.

f
equalize

This filter equalizes the color distribution in the image.

f
fill

This filter permit to return an image sized exactly as requested wherever is its ratio byfilling with chosen color the missing parts. Usually used with "fit-in" or "adaptive-fit-in"

T
FitInStyle

Style of resizing for 'fit-in'.

f
format

Specify the output format of the image.

f
frame

This filter uses a 9-patch to overlay the image.

f
grayscale

This filter changes the image to grayscale.

T
HorizontalAlign

Horizontal alignment for crop positioning.

T
ImageFormat

Image formats supported by Thumbor.

f
noise

This filter adds noise to the image.

f
noUpscale

This filter tells thumbor not to upscale your images.

v
ORIGINAL_SIZE

Original size for image width or height. *

T
OriginalSize

Original size for image width or height. *

f
quality

This filter changes the overall quality of the JPEG image (does nothing for PNGs or GIFs).

f
rgb

This filter changes the amount of color in each of the three channels.

f
rotate

This filter rotates the given image according to the angle passed.

f
roundCorner

This filter adds rounded corners to the image using the specified color as the background.

f
sharpen

This filter enhances apparent sharpness of the image. It's heavily based on Marco Rossini'sexcellent Wavelet sharpen GIMP plugin. Check http://registry.gimp.org/node/9836 for detailsabout how it work.

f
stripIcc

This filter strips the ICC profile from the image.

I
ThumborUrlResizedOptions

These options are only available if the image will be resized.

T
TrimPixelColor

Orientation from where to get the pixel color for trim.

T
VerticalAlign

Vertical alignment for crop positioning.

f
watermark

This filter adds a watermark to the image.

f
blur

This filter adds a blur effect to the image using the specified radius and sigma.

f
brightness

This filter increases or decreases the image brightness.

I
Color

Describe red, green, and blue values

f
contrast

The filter increases or decreases the image contrast.

f
equalize

This filter equalizes the color distribution in the image.

f
fill

This filter permit to return an image sized exactly as requested wherever is its ratio byfilling with chosen color the missing parts. Usually used with "fit-in" or "adaptive-fit-in"

f
format

Specify the output format of the image.

f
frame

This filter uses a 9-patch to overlay the image.

f
grayscale

This filter changes the image to grayscale.

f
noise

This filter adds noise to the image.

f
noUpscale

This filter tells thumbor not to upscale your images.

f
quality

This filter changes the overall quality of the JPEG image (does nothing for PNGs or GIFs).

f
rgb

This filter changes the amount of color in each of the three channels.

f
rotate

This filter rotates the given image according to the angle passed.

f
roundCorner

This filter adds rounded corners to the image using the specified color as the background.

f
sharpen

This filter enhances apparent sharpness of the image. It's heavily based on Marco Rossini'sexcellent Wavelet sharpen GIMP plugin. Check http://registry.gimp.org/node/9836 for detailsabout how it work.

f
stripIcc

This filter strips the ICC profile from the image.

f
watermark

This filter adds a watermark to the image.