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_filterThe resampling filter to use if upscaling in one or more directionsdown_filterThe resampling filter to use if downscaling in both directions.scaling_colorspaceUselinearfor the best results, orsrgbto mimick poorly-written software.srgbcan destroy image highlights.background_colorThe background color to apply.resample_whenOne ofsize_differs,size_differs_or_sharpening_requested, oralways.sharpen_whenOne 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_sharplanczoslanczos_sharplanczos_2lanczos_2_sharpcubiccubic_sharpcatmull_rommitchellcubic_b_splinehermitejinctrianglelinearboxfastestn_cubicn_cubic_sharp