libheif icon indicating copy to clipboard operation
libheif copied to clipboard

Write image to io.Writer or byte array in GO

Open Saurabh702 opened this issue 2 years ago • 2 comments

https://github.com/strukturag/libheif/blob/3ec048aef27c9702a79e59478de601799ebd3629/go/heif/heif.go#L477

Is it possible to write the image directly to byte array or io.Writer?

As per this issue https://github.com/strukturag/libheif/issues/560, possible to do in C, can it be done using the existing GO API?

Saurabh702 avatar Apr 29 '23 01:04 Saurabh702

I don't see it in the Go API. However it does not look that hard to add, or to just use the C API.

What have you tried already? What were the results of that?

bradh avatar Apr 29 '23 11:04 bradh

Appears to be a duplicate of #332

bradh avatar Apr 29 '23 11:04 bradh