
-fft produces two components: magnitude and phase. The magnitude can look almost black because its values are small; that appearance alone does not establish a failed transform. Preserve the original pair and create a separate enhanced spectrum preview for inspection.
Keep the components associated
ImageMagick documents magnitude as the first component and phase as the second. A multiframe-capable output can hold both in one file; a PNG output produces separate component images.
A proposed POSIX-shell example is:
magick input.png -fft transform.miff
The documented result is magnitude at transform.miff[0] and phase at transform.miff[1]. This command has not been executed. The FFTW delegate is required, so confirm the installed ImageMagick 7 build's capabilities before diagnosing an absent transform as an image problem.
Make a preview without replacing data
The official reference illustrates contrast stretching followed by logarithmic evaluation to reveal the magnitude spectrum. Apply that display enhancement to a separate derivative:
magick 'transform.miff[0]' -contrast-stretch 0 -evaluate log 1000 spectrum-preview.png
The numeric argument is the documentation's example, not an optimal value established for your image. A stronger-looking display does not mean the underlying transform contains more information.
Do not replace the stored magnitude with this preview while still calling the pair an unchanged transform. The enhancement changes values for visibility.
Record automatic padding
For an input that is not an even square, the manual describes padding at the right or bottom to an even square size. Record the original raster bounds separately from the transform bounds.
A later inverse workflow needs the appropriate component interpretation and original spatial extent. The paired components are not two independent photographs to merge visually. The audio-spectrum guide concerns plotted audio analysis, rather than this two-dimensional image transform artifact.
Keep alternative FFT representations distinct
+fft produces real and imaginary components and has additional HDRI and storage requirements. Do not treat a magnitude/phase pair as interchangeable with that representation.
The spectrogram tradeoff guide addresses time-frequency display settings. Here the deliverable is an identified, unchanged transform pair plus an explicitly labeled viewing derivative. No successful inverse, measured reconstruction fidelity or performed conversion is claimed.
Related tasks
- Why Does Audacity Plot Spectrum Change When I Select Both Stereo Channels?
- Why Does an Audacity Spectrogram Show Clear Hum but Blur a Short Click?
Sources and scope
- ImageMagick 7 option reference: fft: -fft outputs magnitude and phase, may pad to an even square, and requires FFTW; dark magnitude values can be normal rather than a failed transform.
Official ImageMagick 7 documentation was captured October 23, 2026. Examples and checks are proposed, not executed. Confirm the installed build, required delegates, actual file 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: Paparazzi Ratzfatzzi / Pexels, Pexels License. This is an illustrative source photograph, not an application screenshot or a generated test result.