class Chevalet::Filters::Resize

Resize the image.

Parameters

geometry

Geometry string describing the transformation. See Chevalet::Filters for information on geometry strings.

Examples

Resize the image to twice its original size:

[{
  "filter": "resize",
  "params": { "geometry": "200%" }
}]

Fit the image into the given dimensions, preserving aspect ratio, but only if the original image is larger than either of the given measurements:

[{
  "filter": "resize",
  "params": { "geometry": "300x400>" }
}]

Constants

DefaultParams