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

Error: no such operation text #17

Open
musistudio opened this issue Jun 21, 2022 · 3 comments
Open

Error: no such operation text #17

musistudio opened this issue Jun 21, 2022 · 3 comments
Labels
question Further information is requested

Comments

@musistudio
Copy link

When I use vips.Image.text to create text image,something wrong happend

const vips = await Vips();
const image = vips.Image.text("test");

Run this code,I got blow errors:

Error: no such operation text
VipsOperation: class "text" not found

I'm not sure if this is a bug, I only want to add some font watermask to my picture.Do you have a better way?

@kleisauke kleisauke added the question Further information is requested label Jul 5, 2022
@kleisauke
Copy link
Owner

wasm-vips doesn't currently support text rendering via vips.Image.text, since it's dependent on Pango, which brings in a lot of sub-dependencies that needs to be compiled for WebAssembly:

For the same reason, SVG support via librsvg is currently not supported either, as mentioned in #4 (comment). For now, I can recommend using a pre-generated watermark, see for example the watermark sample on the playground.

@ricardo85x

This comment was marked as off-topic.

@kleisauke
Copy link
Owner

@ricardo85x There are no plans to support PDF files. In short, this is due to that Poppler is GPL-licensed and PDFium uses an unusual build system.

Please open a new issue for that if you want more details on this.

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

No branches or pull requests

3 participants