mirror of
https://github.com/lovell/sharp.git
synced 2026-02-16 03:16:16 +01:00
Add ignoreIcc input option to ignore embedded ICC profile
This commit is contained in:
@@ -103,6 +103,10 @@ namespace sharp {
|
||||
if (HasAttr(input, "density")) {
|
||||
descriptor->density = AttrAsDouble(input, "density");
|
||||
}
|
||||
// Should we ignore any embedded ICC profile
|
||||
if (HasAttr(input, "ignoreIcc")) {
|
||||
descriptor->ignoreIcc = AttrAsBool(input, "ignoreIcc");
|
||||
}
|
||||
// Raw pixel input
|
||||
if (HasAttr(input, "rawChannels")) {
|
||||
descriptor->rawDepth = AttrAsEnum<VipsBandFormat>(input, "rawDepth", VIPS_TYPE_BAND_FORMAT);
|
||||
|
||||
Reference in New Issue
Block a user