Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heifsave is not defined #44

Closed
saschanaz opened this issue Mar 5, 2023 · 3 comments
Closed

heifsave is not defined #44

saschanaz opened this issue Mar 5, 2023 · 3 comments

Comments

@saschanaz
Copy link

import Vips from 'wasm-vips';

const vips = await Vips();

let im = vips.Image.newFromFile('test.4.jpg');
im.heifsave('testoutput.avif');

This fails on wasm-vips 0.0.4, perhaps some build flag is missing?

@atjn
Copy link
Contributor

atjn commented Mar 7, 2023

HEIF/AVIF is not supported in v0.0.4. It should work just fine when v0.0.5 is released.

For my projects, I have manually compiled wasm-vips with HEIF support, so I can keep working while waiting for an official release. Feel free to copy the custom release from my repository: https://github.com/atjn/easy-web-app-builder/blob/cbdf3b27e45c56b66324fdb393f69558e07bb4ed/wasm-vips-0.0.4%2Bb24ca0b.tgz

You can install the zip file directly by running npm install wasm-vips-0.0.4+b24ca0b.tgz , and you can even tell NPM to bundle this custom release with your project when you release new versions.

@saschanaz
Copy link
Author

Awesome, thanks! I'll close this then 👍

@kleisauke
Copy link
Owner

v0.0.5 now available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants