pixiv / go-libjpeg

An implementation of Go binding for libjpeg (or libjpeg-turbo).
BSD 3-Clause "New" or "Revised" License
156 stars 52 forks source link

Encoding *image.NRGBA #41

Open subuk opened 7 years ago

subuk commented 7 years ago

Hello, I'm currently using 'github.com/disintegration/imaging' for image transformations and want to encode resulting image to jpeg using mozjpeg with this bindings. But 'disintegration/imaging' library returns images in NRGBA format, which go-libjpeg cannot understand.

Should NRGBA be added to this bindings or should I convert image from NRGBA to one of supported color schemes?

rikonor commented 7 years ago

Am also in the same position, would be curious if there's any plans to support this.

notnot commented 4 years ago

Same here...go-libjpeg.Decode() does not return an error, but the output file is 0 bytes.