CdnPathBuilder class
Methods
blur ([int ? strength ])
→ CdnPathBuilder
Performs Gaussian blur on result image.
Strength is standard deviation (aka blur radius) multiplied by ten. Strength
build ()
→ String
Returns the current CDN path as a string.
colorRecognition ({int ? numberOfColors })
→ CdnPathBuilder
crop (int width , int height )
→ CdnPathBuilder
Adds top-left-aligned crop.
cropCenter (int width , int height )
→ CdnPathBuilder
Adds center-aligned crop.
cropCenterColor (int width , int height , String hexColor )
→ CdnPathBuilder
Adds center-aligned crop with a filled background.
cropColor (int width , int height , String hexColor )
→ CdnPathBuilder
Adds center-aligned crop with a filled background.
dimensionGuard (int dim )
→ void
dimensionsGuard (int width , int height )
→ void
fileInfoAsJson ()
→ CdnPathBuilder
fileInfoAsJsonp ()
→ CdnPathBuilder
flip ()
→ CdnPathBuilder
Flips the image.
format (ImageFormat format )
→ CdnPathBuilder
Turn an image to one of the following formats: FORMAT_JPEG or FORMAT_PNG.
grayscale ()
→ CdnPathBuilder
Adds a grayscale effect.
invert ()
→ CdnPathBuilder
Inverts colors.
mirror ()
→ CdnPathBuilder
Horizontally mirror image.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preview ([int ? width , int ? height ])
→ CdnPathBuilder
Reduces an image proportionally in order to fit it into given dimensions.
progressive (bool progressive )
→ CdnPathBuilder
Returns a progressive image. In progressive images, data are compressed in
multiple passes of progressively higher detail. This is ideal for large
images that will be displayed while downloading over a slow connection
allowing a reasonable preview after receiving only a portion of the data.
The operation does not affect non-JPEG images; does not force image
formats to JPEG.
https://uploadcare.com/docs/transformations/image_transformations/#operation-progressive
quality (ImageQuality quality )
→ CdnPathBuilder
Image quality affects size of image and loading speed. Has no effect on non-JPEG images, but does not force format to JPEG.
resize (int width , int height )
→ CdnPathBuilder
Resizes width and height
resizeHeight (int height )
→ CdnPathBuilder
Resizes height, keeping the aspect ratio.
resizeWidth (int width )
→ CdnPathBuilder
Resizes width, keeping the aspect ratio.
scaleCrop (int width , int height )
→ CdnPathBuilder
Scales the image until one of the dimensions fits,
then crops the bottom or right side.
scaleCropCenter (int width , int height )
→ CdnPathBuilder
Scales the image until one of the dimensions fits,
centers it, then crops the rest.
sharp ([int ? strength ])
→ CdnPathBuilder
Performs sharpening on result image. This can be useful after scaling down.
toString ()
→ String
A string representation of this object.
inherited