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

Support to encode image.RGBA? #19

Closed lming closed 7 years ago

lming commented 8 years ago

It seems right now jpeg.Encode() can only take image.Gray and image.YCBCr. Is it possible to support image.RGBA? I have images generated by image/draw, which cannot be image.YCBCr.

codeskyblue commented 7 years ago

I found some write convert YCBCr to RGBA function. maybe can be some help: https://github.com/disintegration/imaging/blob/master/helpers.go#L320

harukasan commented 7 years ago

Fixed in #33.