Resize with some filters and ColorBurn results in pixel value corruption
Author: chambyCreated Feb 24, 2026Updated Sep 25, 2026
ImageMagick version
7.1.2-15
Operating system
MacOS
Operating system, version and so on
Tahoe 26.3
Description
Description
Something is going on here that results in corrupt output. Some filters result in corruption, and some do not. The white pixels specifically are the problem.
Version
Version: ImageMagick 7.1.2-15 Q16-HDRI aarch64 23686 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/license/
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib heic jng jpeg lcms ltdl lzma png tiff webp xml zlib zstd
Compiler: clang (17.0.0)Filter pass/fail
❌ Bartlett ❌ Blackman ❌ Bohman ✅ Box ❌ Catrom ❌ Cosine ✅ Cubic ✅ Gaussian ❌ Hamming ❌ Hann ✅ Hermite ✅ Jinc ❌ Kaiser ❌ Lagrange ❌ Lanczos ❌ Lanczos2 ❌ Lanczos2Sharp ❌ LanczosRadius ❌ LanczosSharp ❌ MagicKernelSharp2013 ❌ MagicKernelSharp2021 ❌ Mitchell ❌ Parzen ✅ Point ✅ Quadratic ❌ Robidoux ❌ RobidouxSharp ❌ Sinc ❌ SincFast ✅ Spline ❌ CubicSpline ✅ Triangle ❌ Welch
Workaround
Adding a -clamp after the resize fixes the issue.
magick -size 450x450 xc:"dark green" \( shadows.png -resize 75% -clamp \) -compose ColorBurn -composite output.pngSteps to Reproduce
Command
magick -size 450x450 xc:"dark green" \( shadows.png -resize 75% \) -compose ColorBurn -composite output.pngImages
shadows.png
Source: ImageMagick/ImageMagick