mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08: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
|
|
@ -262,6 +262,14 @@ func TestImageMetadata(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestImageColourspaceBW(t *testing.T) {
|
||||
buf, err := initImage("test.jpg").Colourspace(B_W)
|
||||
if err != nil {
|
||||
t.Errorf("Cannot process the image: %#v", err)
|
||||
}
|
||||
Write("fixtures/test_image_colourspace_b_w.jpg", buf)
|
||||
}
|
||||
|
||||
func TestFluentInterface(t *testing.T) {
|
||||
image := initImage("test.jpg")
|
||||
_, err := image.CropByWidth(300)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue