Skip to content

How to adjust output Quality and use other functions of ImageMagick with Magic-WASM? #159

Answered by dlemstra
abduljabbar021 asked this question in Q&A
Discussion options

You must be logged in to vote

The error message means that you are trying to execute something as a function that is not a function. This is happening because quality is a property and not a function. You will need to do image.quality = 40; instead.

This library does not have all functions implemented but it's a lot more than 4. You can find which one are now implemented in this typescript file here: https://github.com/dlemstra/magick-wasm/blob/main/src/magick-image.ts

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@abduljabbar021
Comment options

@dlemstra
Comment options

Answer selected by abduljabbar021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants