Configure imgscalr scaling modes
masterimgscalr allows you to control how images are fitted into target dimensions using Mode. By default, resizing maintains proportions. Use Mode to override this behavior:
Mode.FIT_EXACT: Forces the image into the specific given dimensions, ignoring orientation and proportions.Mode.FIT_TO_WIDTH: Treats width as the primary dimension and recalculates height to fit.Mode.FIT_TO_HEIGHT: Treats height as the primary dimension and recalculates width to fit.