image-js icon indicating copy to clipboard operation
image-js copied to clipboard

I cannot resize images with 'bilinear' interpolation

Open fheyen opened this issue 4 years ago • 4 comments

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

fheyen avatar Jul 06 '21 16:07 fheyen

bilinear is only implemented in the alpha version: https://github.com/image-js/image-js/issues/496#issuecomment-583258046

fabb avatar Jan 13 '22 12:01 fabb

When will this be available? I notice it in image-js-typescript, but don't see that available on npm?

andrewWannalise avatar Sep 20 '23 05:09 andrewWannalise

image-js-typescript is published with the next tag. So you can install it with npm i image-js@next

stropitek avatar Sep 21 '23 11:09 stropitek