|
@@ -264,8 +264,12 @@ vips_jpegsave_go(VipsImage *in, void **buf, size_t *len, int strip, int quality,
|
|
|
}
|
|
|
|
|
|
int
|
|
|
-vips_pngsave_go(VipsImage *in, void **buf, size_t *len, int interlace) {
|
|
|
- return vips_pngsave_buffer(in, buf, len, "filter", VIPS_FOREIGN_PNG_FILTER_NONE, "interlace", interlace, NULL);
|
|
|
+vips_pngsave_go(VipsImage *in, void **buf, size_t *len, int interlace, int embed_profile) {
|
|
|
+ if (embed_profile) {
|
|
|
+ return vips_pngsave_buffer(in, buf, len, "filter", VIPS_FOREIGN_PNG_FILTER_NONE, "interlace", interlace, NULL);
|
|
|
+ }
|
|
|
+
|
|
|
+ return vips_pngsave_buffer(in, buf, len, "profile", "none", "filter", VIPS_FOREIGN_PNG_FILTER_NONE, "interlace", interlace, NULL);
|
|
|
}
|
|
|
|
|
|
int
|