Resampling Hints
Resampling hints can be specified in constraint commands, scale commands, watermarking, and for compositing. They offer control over image sharpness, resampling color space, background color, and more.
sharpen_percent
(0..100) The amount of sharpening to apply during resamplingup_filter
The resampling filter to use if upscaling in one or more directionsdown_filter
The resampling filter to use if downscaling in both directions.scaling_colorspace
Uselinear
for the best results, orsrgb
to mimick poorly-written software.srgb
can destroy image highlights.background_color
The background color to apply.resample_when
One ofsize_differs
,size_differs_or_sharpening_requested
, oralways
.sharpen_when
One ofdownscaling
,upscaling
,size_differs
, oralways
{
"sharpen_percent": 15,
"down_filter": "robidoux",
"up_filter": "ginseng",
"scaling_colorspace": "linear",
"background_color": "transparent",
"resample_when": "size_differs_or_sharpening_requested",
"sharpen_when": "downscaling"
}
Resampling Filters
robidoux
- The default and recommended downsampling filterrobidoux_sharp
- A sharper version of the aboverobidoux_fast
- A faster, less accurate version of robidouxginseng
- The default and suggested upsampling filterginseng_sharp
lanczos
lanczos_sharp
lanczos_2
lanczos_2_sharp
cubic
cubic_sharp
catmull_rom
mitchell
cubic_b_spline
hermite
jinc
triangle
linear
box
fastest
n_cubic
n_cubic_sharp