compare-im7.q16hdri(1)

πŸ“¦
version 7.1.2.31 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– compare β€” mathematically and visually annotate the difference between an image and its reconstruction πŸ’–

okay bestie, pull up a chair, we're talking about compare-im7.q16hdri from the ImageMagick family (yes, the ImageMagick-im7.q16hdri(1) squad). She's the friend in the group chat whose whole personality is spotting the difference between an image and its reconstruction β€” mathematically AND visually, no cap. ✨


🌸 SYNOPSIS 🌸

magick-im7.q16hdri compare input-file input-file [options] output-file

Two input files. Not one. Two. She's comparing, that's the whole point, okay? πŸ™ˆ


πŸ¦‹ OVERVIEW πŸ¦‹

compare-im7.q16hdri is a full member of the ImageMagick-im7.q16hdri(1) suite of tools β€” like, she has a membership card and everything πŸ’…. Her job: mathematically and visually annotate the difference between an image and its reconstruction.

Want the full lore? Point your browser at:


✨ DESCRIPTION ✨

πŸ‘‘ Image Settings

These are the settings, bestie. The vibe-setters. The main character knobs.

  • -alpha option β€” on, activate, off, deactivate, set, opaque, copy transparent, extract, background, or shape
  • -authenticate value β€” decrypt image with this password
  • -background color β€” background color
  • -colorspace type β€” alternate image colorspace
  • -compose operator β€” set image composite operator
  • -compress type β€” type of pixel compression when writing the image
  • -decipher filename β€” convert cipher pixels to plain pixels
  • -define format:option β€” define one or more image format options
  • -density geometry β€” horizontal and vertical density of the image
  • -depth value β€” image depth
  • -dissimilarity-threshold value β€” maximum distortion for (sub)image match
  • -encipher filename β€” convert plain pixels to cipher pixels
  • -extract geometry β€” extract area from image
  • -format "string" β€” output formatted image characteristics
  • -fuzz distance β€” colors within this distance are considered equal
  • -gravity type β€” horizontal and vertical text placement
  • -identify β€” identify the format and characteristics of the image
  • -interlace type β€” type of image interlacing scheme
  • -highlight-color color β€” emphasize pixel differences with this color
  • -limit type value β€” pixel cache resource limit
  • -lowlight-color color β€” de-emphasize pixel differences with this color
  • -metric type β€” measure differences between images with this metric
  • -monitor β€” monitor progress
  • -negate β€” replace each pixel with its complementary color
  • -profile filename β€” add, delete, or apply an image profile
  • -quality value β€” JPEG/MIFF/PNG compression level
  • -quiet β€” suppress all warning messages
  • -quantize colorspace β€” reduce colors in this colorspace
  • -read-mask filename β€” associate a read mask with the image
  • -regard-warnings β€” pay attention to warning messages
  • -repage geometry β€” size and location of an image canvas
  • -respect-parentheses β€” settings remain in effect until parenthesis boundary
  • -sampling-factor geometry β€” horizontal and vertical sampling factor
  • -seed value β€” seed a new sequence of pseudo-random numbers
  • -set attribute value β€” set an image attribute
  • -similarity-threshold value β€” minimum distortion for (sub)image match
  • -size geometry β€” width and height of image
  • -subimage-search β€” search for subimage
  • -synchronize β€” synchronize image to storage device
  • -taint β€” declare the image as modified
  • -transparent-color color β€” transparent color
  • -type type β€” image type
  • -write-mask filename β€” associate a write mask with the image
  • -verbose β€” print detailed information about the image
  • -virtual-pixel method β€” virtual pixel access method

πŸ”₯ Image Operators

The ones that actually do stuff to your pixels. Obsessed.

  • -auto-orient β€” automatically orient image
  • -brightness-contrast geometry β€” improve brightness / contrast of the image
  • -distort method args β€” distort images according to given method and args
  • -level value β€” adjust the level of image contrast
  • -resize geometry β€” resize the image
  • -rotate degrees β€” apply Paeth rotation to the image
  • -sigmoidal-contrast geometry β€” lightness rescaling using sigmoidal contrast enhancement
  • -trim β€” trim image edges

πŸŽ€ Image Channel Operators

  • -separate β€” separate an image channel into a grayscale image

🧚 Image Sequence Operators

  • -crop geometry β€” cut out a rectangular region of the image
  • -write filename β€” write images to this file

⭐ Image Stack Operators

  • -delete indexes β€” delete the image from the image sequence

🌈 Miscellaneous Options

The odds and ends. The little guys. We love them.

  • -channel mask β€” set the image channel mask
  • -debug events β€” display copious debugging information
  • -help β€” print program options
  • -log format β€” format of debugging information
  • -list type β€” print a list of supported option arguments
  • -version β€” print version information

πŸ’… The Fine Print (but make it cute)

By default, the image format of file is figured out from its magic number β€” like a vibe check, but for file types. Want to force a specific image format? Precede the filename with an image format name and a colon (i.e. ps:image), or just specify the image type as the filename suffix (i.e. image.ps). And you can specify file as - for standard input or output. 🫢

Two images are considered similar if their difference β€” according to the specified metric and fuzz value β€” is 0. There's one exception though, and it's the normalized cross correlation metric (NCC): with NCC, two images count as similar when their normalized cross correlation is 1. The default metric is NCC. πŸ‘‘

Heads up bestie: the compare program returns 2 on error, 0 if the images are similar, or a value between 0 and 1 if they are not similar. Check that exit status, fr fr. 😭

πŸ¦‹ SEE ALSO πŸ¦‹


Copyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software β€” see:


and that's the whole page, bestie πŸ’– go forth and diff those images. this was ImageMagick, dated 2009/01/10 01:00:00 β€” yeah she's been iconic since forever, we stan an elder. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from