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

Cannot create image from raw RGB buffer #333

Open
nhuysamen-godaddy opened this issue Nov 11, 2022 · 1 comment
Open

Cannot create image from raw RGB buffer #333

nhuysamen-godaddy opened this issue Nov 11, 2022 · 1 comment

Comments

@nhuysamen-godaddy
Copy link

nhuysamen-godaddy commented Nov 11, 2022

We have a use-case where we would like to create a new image based off raw RGB data. Vips does have support for this via the new_from_memory function (or better yet new_from_memory_copy), e.g.:

vips::VImage out = vips::VImage::new_from_memory (data, length, width, height, 3, VIPS_FORMAT_UCHAR);

@tonimelisma
Copy link
Collaborator

Hey @nhuysamen-godaddy. Can you clarify, is this a feature request? Are you looking for govips to support the function you mentioned?

If so, would you be up for creating a PR, with documentation and tests? I'd be happy to review and merge.

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

2 participants