Optional
Alpha handling. 'premultiplied' (default) resamples in premultiplied space — the mathematically correct path that stops transparent pixels' colours bleeding into visible edges. 'straight' resamples raw channels (for data/masks, not photos).
Resampling filter. Default 'lanczos3' (the high-quality default, especially for downscaling). 'nearest' for pixel art.
Target height in pixels (positive integer).
Target width in pixels (positive integer).
Alpha handling. 'premultiplied' (default) resamples in premultiplied space — the mathematically correct path that stops transparent pixels' colours bleeding into visible edges. 'straight' resamples raw channels (for data/masks, not photos).