image-js
image-js copied to clipboard
I cannot resize images with 'bilinear' interpolation
I cannot resize images with bilinear interpolation, the following code throws an error and I have no idea why:
const image = await Image.load('myImage.jpg');
const processed = image.resize({
width: TARGET_WIDTH,
interpolation: 'bilinear',
});
Error:
unsupported resize interpolation: bilinear
image-js version 0.31.4
bilinear is only implemented in the alpha version: https://github.com/image-js/image-js/issues/496#issuecomment-583258046
When will this be available? I notice it in image-js-typescript, but don't see that available on npm?
image-js-typescript is published with the next tag. So you can install it with npm i image-js@next