Skip to content

ImageSizerEngineIMagick: sRGB option undocumented #2344

Description

@phlppschrr

The opt-in sRGB option added as the fix for #2265 is missing from
wire/modules/Image/ImageSizerEngineIMagick/API.md, and the "Color management"
note there now contradicts the code.

  • Option read in ImageSizerEngineIMagick.module line 301 (!empty($this->options['sRGB']),
    wide-gamut ICC → sRGB before the profile strip).
  • Fix commit 2060f1c (2026-07-08) only changed the .module file and added sRGB2014.icc;
    API.md (49f30bc, one day earlier) was not updated. Current dev API.md: 0 matches for sRGB.
  • API.md lines 186–188 say "By default, non-ICC metadata is removed", but lines 321–324
    strip the ICC profile as well.

Suggested fix: add an sRGB row to the Properties table (bool, default false,
"convert Display P3 / Adobe RGB ICC profiles to sRGB before stripping; requires the IMagick
LCMS delegate, otherwise logged and skipped") and correct the color-management note.

Related: #2265

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions