mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 23:18:19 -07:00
Add support for colourspace (fix #45)
This commit is contained in:
parent
5874efef3e
commit
8a2b991ce8
7 changed files with 41 additions and 3 deletions
15
options.go
15
options.go
|
|
@ -55,6 +55,20 @@ const (
|
|||
VERTICAL Direction = C.VIPS_DIRECTION_VERTICAL
|
||||
)
|
||||
|
||||
type Interpretation int
|
||||
|
||||
const (
|
||||
ERROR Interpretation = C.VIPS_INTERPRETATION_ERROR
|
||||
MULTIBAND Interpretation = C.VIPS_INTERPRETATION_MULTIBAND
|
||||
B_W Interpretation = C.VIPS_INTERPRETATION_B_W
|
||||
CMYK Interpretation = C.VIPS_INTERPRETATION_CMYK
|
||||
RGB Interpretation = C.VIPS_INTERPRETATION_RGB
|
||||
sRGB Interpretation = C.VIPS_INTERPRETATION_sRGB
|
||||
RGB16 Interpretation = C.VIPS_INTERPRETATION_RGB16
|
||||
GREY16 Interpretation = C.VIPS_INTERPRETATION_GREY16
|
||||
scRGB Interpretation = C.VIPS_INTERPRETATION_scRGB
|
||||
)
|
||||
|
||||
const WATERMARK_FONT = "sans 10"
|
||||
|
||||
// Color represents a traditional RGB color scheme
|
||||
|
|
@ -97,4 +111,5 @@ type Options struct {
|
|||
Watermark Watermark
|
||||
Type ImageType
|
||||
Interpolator Interpolator
|
||||
Interpretation Interpretation
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue