mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
commit
cd21e84c71
11 changed files with 1 additions and 450 deletions
6
vips.go
6
vips.go
|
|
@ -15,13 +15,8 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
"unsafe"
|
||||
|
||||
d "github.com/tj/go-debug"
|
||||
)
|
||||
|
||||
// debug is internally used to
|
||||
var debug = d.Debug("bimg")
|
||||
|
||||
// VipsVersion exposes the current libvips semantic version
|
||||
const VipsVersion = string(C.VIPS_VERSION)
|
||||
|
||||
|
|
@ -387,7 +382,6 @@ func vipsPreSave(image *C.VipsImage, o *vipsSaveOptions) (*C.VipsImage, error) {
|
|||
}
|
||||
|
||||
if o.OutputICC != "" && vipsHasProfile(image) {
|
||||
debug("Embedded ICC profile found, trying to convert to %s", o.OutputICC)
|
||||
outputIccPath := C.CString(o.OutputICC)
|
||||
defer C.free(unsafe.Pointer(outputIccPath))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue