Michaël Zasso
Michaël Zasso
Oh, that's right sorry. We have only implemented it for "resize" in the new version that's in development. You can try with version "1.0.0-alpha.2" if you want, but it's not...
I'm skiing right now 😁 but I can help you when I'm back this afternoon
Okay, so there was no published version with the resize method. There is now `v1.0.0-alpha.3`! Here's an example of how to use it (note that there are TypeScript definitions, so...
> const bigTempImage = readSync("./dist/big.png"); > returns me Error: unrecognized data format, but it works with: That's weird. The error message means we haven't detected a PNG or JPEG format....
It's not a free-riding spot. I used an image from mountaineering last summer 😆
For the resizing, indeed I get the same result as you. I'll have to verify the algorithm. For now it was only tested on relatively small images.
There's probably a need for a completely different algorithm to get a good-looking resize, because our result is almost the same as what you get with the OpenCV library.
@fabb we are actively working on the new version in a separate temporary repository: https://github.com/image-js/image-js-typescript
It's going to be supported in the next version. We are developing it at https://github.com/image-js/image-js-typescript, you can try it using `npm install image-js@next`, but beware that the API has changed...
https://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/histogram_equalization/histogram_equalization.html