mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 23:18:19 -07:00
Merge pull request #105 from jibingeo/master
Fixes issue with typecast from GType to int
This commit is contained in:
commit
1278491e23
3 changed files with 2 additions and 1 deletions
BIN
fixtures/test_icc_prophoto.jpg
Normal file
BIN
fixtures/test_icc_prophoto.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 142 KiB |
|
|
@ -39,6 +39,7 @@ func TestMetadata(t *testing.T) {
|
|||
space string
|
||||
}{
|
||||
{"test.jpg", "jpeg", 0, false, false, "srgb"},
|
||||
{"test_icc_prophoto.jpg", "jpeg", 0, false, true, "srgb"},
|
||||
{"test.png", "png", 0, true, false, "srgb"},
|
||||
{"test.webp", "webp", 0, false, false, "srgb"},
|
||||
}
|
||||
|
|
|
|||
2
vips.h
2
vips.h
|
|
@ -47,7 +47,7 @@ typedef struct {
|
|||
double Background[3];
|
||||
} WatermarkOptions;
|
||||
|
||||
static int
|
||||
static unsigned long
|
||||
has_profile_embed(VipsImage *image) {
|
||||
return vips_image_get_typeof(image, VIPS_META_ICC_NAME);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue