mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-15 02:15:54 -07:00
Merge pull request #299 from evanoberholster/master
Update Transform ICC Profiles with Input Profile
This commit is contained in:
commit
1faf8e4f8d
4 changed files with 44 additions and 2 deletions
9
vips.h
9
vips.h
|
|
@ -188,7 +188,7 @@ vips_type_find_save_bridge(int t) {
|
|||
}
|
||||
|
||||
int
|
||||
vips_rotate_bimg(VipsImage *in, VipsImage **out, int angle) {
|
||||
vips_rotate_bridge(VipsImage *in, VipsImage **out, int angle) {
|
||||
int rotate = VIPS_ANGLE_D0;
|
||||
|
||||
angle %= 360;
|
||||
|
|
@ -290,6 +290,13 @@ vips_icc_transform_bridge (VipsImage *in, VipsImage **out, const char *output_ic
|
|||
return vips_icc_transform(in, out, output_icc_profile, "embedded", TRUE, NULL);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
vips_icc_transform_with_default_bridge (VipsImage *in, VipsImage **out, const char *output_icc_profile, const char *input_icc_profile) {
|
||||
// `output_icc_profile` represents the absolute path to the output ICC profile file
|
||||
return vips_icc_transform(in, out, output_icc_profile, "input_profile", input_icc_profile, "embedded", FALSE, NULL);
|
||||
}
|
||||
|
||||
int
|
||||
vips_jpegsave_bridge(VipsImage *in, void **buf, size_t *len, int strip, int quality, int interlace) {
|
||||
return vips_jpegsave_buffer(in, buf, len,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue