Add option to convert embedded ICC profiles

Set an bimg.Options OutputICC to an absolute path to the desired output ICC profile. If an embedded ICC profile is found in VipsImage, it is converted to the output ICC profile.
Fixes #50
This commit is contained in:
Janis Meybohm 2017-07-07 14:02:03 +02:00
parent ce7bbda0f5
commit 767bfdac74
4 changed files with 22 additions and 1 deletions

View file

@ -161,6 +161,7 @@ func saveImage(image *C.VipsImage, o Options) ([]byte, error) {
Interlace: o.Interlace,
NoProfile: o.NoProfile,
Interpretation: o.Interpretation,
OutputICC: o.OutputICC,
}
// Finally get the resultant buffer
return vipsSave(image, saveOptions)