go-libjpeg icon indicating copy to clipboard operation
go-libjpeg copied to clipboard

An implementation of Go binding for libjpeg (or libjpeg-turbo).

Results 19 go-libjpeg issues
Sort by recently updated
recently updated
newest added

I run app with next env on osx ``` CGO_CFLAGS=-I/usr/local/opt/jpeg/include CGO_CFLAGS_ALLOW=-Xpreprocessor CGO_ENABLED=1 CGO_LDFLAGS=-L/usr/local/opt/jpeg/lib ``` Get an error on jpeg.Encode `JCS_EXT_RGBA is not supported (probably built without libjpeg-turbo)` thank you

``` # github.com/pixiv/go-libjpeg/jpeg go/pkg/mod/github.com/pixiv/[email protected]/jpeg/compress.go:6:10: fatal error: jpeglib.h: No such file or directory #include "jpeglib.h" ^~~~~~~~~~~ compilation terminated. ``` The above block appears while executing go get, any idea what to...

I try partically reimplement `jpegtran` tool for convert some images to progressive JPEG. Also added: - `exif.c`/`exif.h` for get image orientation (based on http://src.gnu-darwin.org/ports/x11-toolkits/gtk20/work/gtk+-2.12.3/gdk-pixbuf/io-jpeg.c); - `transupp.c`/`transupp.h` for lossless image rotation...

During encoding I think YCbCr 4:2.0 may read from locations of the Cb and Cr planes that are out of bounds. I also think it happens when the image width/height...

Hi, I'm trying to get up to speed using this library as a wrapper around `mozjpeg`. This is possibly due to a misunderstanding on my part... But I noticed that...

## Purpose We are now working with two LibJPEG bindings (public go-libjpeg and the another private one). The issue aims to integrate these projects. ## TODO - [x] 1. Backporting...

enhancement

In #41, "github.com/disintegration/imaging" return into `*image.NRGBA` . This PR makes to support encoding `*image.NRGBA` . encodeNRGBA() is almost the same code as encodeRGBA(). Only the name and comments have been...

Hi, I want to control the chroma subsampling ratios for encoding. Now it's the same as the src image. Is there any way I can set a different value? Thank...

You may wish to solve this a different way so i didn't do a PR, but simply adding this line right after the `#cgo LDFLAGS` in `jpeg/jpeg.go` allows modern systems...

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...