davidbyttow / govips

A lightning fast image processing and resizing library for Go
MIT License
1.23k stars 196 forks source link

Question: Howto create images from values? Simple const operations? #405

Open jorismak opened 6 months ago

jorismak commented 6 months ago

Hi,

I've built a few things with lipvips in C before, but since I'm more working with Go these days, I was glad to see there was a binding for it.

But, I seem to be missing a lot? A lot of operations that have _const() variants in libvips for instance, but also things like new_from_image to create simple working-images to fill with (constant) values, etc...

Am I supposed to handle that different in govips, or are they just simply never 'converted' to Go because they weren't needed yet by the author? (A very understandable reason!).

tonimelisma commented 6 months ago

Hey @jorismak - yes, indeed, we haven't updated most of libvips functionality. People send PRs for functions they want to implement. Please check the contributing docs and add test cases for functions you add. You can see old PRs here in Github.