image-js / image-js

Image processing and manipulation in JavaScript
https://image-js.github.io/image-js
MIT License
685 stars 66 forks source link

I cannot resize images with 'bilinear' interpolation #560

Open fheyen opened 3 years ago

fheyen commented 3 years ago

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

fabb commented 2 years ago

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

andrewWannalise commented 1 year ago

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

stropitek commented 12 months ago

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