resample

Resize the image so that its rendered size remains the same as the original at the specified target resolution. For formats which do not support an image resolution, the original resolution of the image must be specified via density command (or format command with density parameter).

parameters

  • density: the density of the image in pixels per unit, as a couple of integer separated by × (or x), Cannot be combined with neither horizontal density nor vertical density.

  • horizontal density: the horizontal density of the image in pixels per unit. Cannot be combined with the density parameter. If the vertical parameter is omitted, it will be considered at the same value.

  • vertical density: the horizontal density of the image in pixels per unit. Cannot be combined with the density parameter. If the horizontal parameter is omitted, it will be considered at the same value

JSON object properties

  • density: density

  • horizontal: horizontal density

  • vertical: vertical density

simplified syntax parameters

  • prefix d: density

  • prefix hv: horizontal density

  • prefix vv: vertical density

array type parameters

The possible arrays are:

  • [horizontal density]

  • [horizontal density, vertical density]

By example :

{ "density": [300] }

string type parameter

The value of the string is the density.

{ "density": "72×72" }

 

Example 1 - Resample to 300 DPI

{ "density": [300,300] }

Simplified syntax: d_300,c_resample

Example 2 - Set density to 72 × 96 DPI

Simplified syntax: vh_72,vv_93,c_resample