
Ordinary morphology can choose extrema independently in each color channel and create a color that no single neighboring source pixel had. ImageMagick's documented intensity variants instead choose a complete neighboring pixel according to intensity. Use that distinction when a dilation should expand existing color samples rather than combine channel maxima.
Establish whether complete source colors matter
For a controlled input, identify adjacent patches with clearly different RGB values. Write down whether the output may synthesize new channel combinations or should retain whole source-pixel colors.
This is a processing contract, not a color-profile repair. The viewer/profile guide addresses differing display interpretations, while morphology deliberately changes pixel neighborhoods.
Compare the operator variants
The official morphology examples provide ErodeIntensity, DilateIntensity, OpenIntensity and CloseIntensity, also with shortened names. A proposed POSIX-shell comparison is:
magick input.png -morphology Dilate Octagon:3 per-channel.png
magick input.png -morphology DilateIntensity Octagon:3 whole-pixel.png
These commands have not been executed. The usage page contains historical and experimental notes; confirm available methods and behavior in the installed ImageMagick 7 build before using a real production image.
Keep the kernel and input identical. Otherwise differences in neighborhood size can obscure the independent-channel versus whole-pixel distinction.
Do not assume channel selection still limits it
The official explanation says intensity variants ignore the current -channel setting. An expression designed to modify only one channel should therefore not silently replace ordinary dilation with an intensity variant.
Revisit the actual output requirement: source-color selection across complete pixels is a different operation from isolating one channel. Merely adding a channel flag does not establish the desired scope for this method.
Inspect selected colors and their spread
Compare source and result samples at recognizable patches. Use precise sampling locations and record what the pixel-sampler guide distinguishes as point versus neighborhood measurements.
A whole-pixel variant can still expand an unwanted bright patch. Avoid calling retained source colors an automatic aesthetic improvement or proof that product appearance remains faithful.
Accept the candidate when its color-selection rule and neighborhood expansion match the brief. This guide claims no completed morphology test, palette-preservation round trip or guarantee that later format conversion introduces no further color changes.
Related tasks
- Why Does a Photoshop Color Reading Change with Every Pixel?
- Why Do My Photo Colors Change Between the Editor and Browser?
Sources and scope
- ImageMagick official mechanism reference: Intensity variants copy entire pixel colors based on intensity instead of independently choosing channel values; the documented variants ignore the channel setting.
Official ImageMagick references were captured October 23, 2026. Morphology usage includes historical and experimental notes, which do not establish current-build regressions or guarantees. Examples and acceptance checks are proposed, not executed; confirm installed-build support, pixel representation and shell syntax.
Prepared by Imagild Editorial, the company editorial team responsible for these guides. AI assisted research and drafting. This is documentation-based guidance with proposed examples, not a claim of hands-on testing or an independent product review. Report a correction.
Cover: Pignatta / Pixabay, Pixabay Content License. This is an illustrative source photograph, not an application screenshot or a generated test result.