compare-im7.q16(1)

๐Ÿ“ฆ
version 7.1.2.31 ยท 2 versions
, in ubuntu resolute, ubuntu stonking

๐Ÿ’– compare-im7.q16 โ€” bestie edition ๐Ÿ’–

okay so this is compare-im7.q16, and it lives in the General Commands Manual section, so you already know it's a real one. it's part of the ImageMagick-im7.q16(1) squad of tools, and its whole personality is: take an image and its reconstruction and mathematically + visually annotate the difference between them. like a glow-up before/after but for pixels. ๐Ÿ’…


โœจ NAME โœจ

compare โ€” mathematically and visually annotate the difference between an image and its reconstruction.

๐ŸŒธ SYNOPSIS ๐ŸŒธ

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

two input files. options in the middle. output at the end. that's the whole recipe bestie, no cap. ๐Ÿซถ

๐Ÿฆ‹ OVERVIEW ๐Ÿฆ‹

so compare-im7.q16 is one of the little icons in the ImageMagick-ims7.q16(1) suite of tools. its job? mathematically AND visually annotate the difference between an image and its reconstruction. yes, both. she does both. ๐Ÿ’…

want the full lore? point your browser at:

๐Ÿ‘‘ DESCRIPTION ๐Ÿ‘‘

here's the whole menu of settings and operators, and I'm listing every single one because we do not gatekeep on this account. ๐ŸŒˆ

๐Ÿ’œ Image Settings

  • -alpha option โ€” set the alpha. the vibes include on, activate, off, deactivate, set, opaque, copy, transparent, extract, background, or shape.
  • -authenticate value โ€” decrypt the image with this password. ๐Ÿ”
  • -background color โ€” the background color.
  • -colorspace type โ€” use an alternate image colorspace.
  • -compose operator โ€” set the image composite operator.
  • -compress type โ€” the type of pixel compression used when writing the image.
  • -decipher filename โ€” convert cipher pixels to plain pixels.
  • -define format:option โ€” define one or more image format options.
  • -density geometry โ€” the horizontal and vertical density of the image.
  • -depth value โ€” image depth.
  • -dissimilarity-threshold value โ€” the maximum distortion allowed for a (sub)image match.
  • -encipher filename โ€” convert plain pixels to cipher pixels.
  • -extract geometry โ€” extract an area from the image.
  • -format "string" โ€” output formatted image characteristics.
  • -fuzz distance โ€” colors within this distance count as equal.
  • -gravity type โ€” horizontal and vertical text placement.
  • -identify โ€” identify the format and characteristics of the image.
  • -interlace type โ€” the type of image interlacing scheme.
  • -highlight-color color โ€” emphasize pixel differences with this color.
  • -limit type value โ€” set a pixel cache resource limit.
  • -lowlight-color color โ€” de-emphasize pixel differences with this color.
  • -metric type โ€” measure the 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 โ€” the size and location of an image canvas.
  • -respect-parentheses โ€” settings stay in effect until a parenthesis boundary.
  • -sampling-factor geometry โ€” the 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 โ€” the minimum distortion for a (sub)image match.
  • -size geometry โ€” the width and height of the image.
  • -subimage-search โ€” search for a subimage.
  • -synchronize โ€” synchronize the image to the storage device.
  • -taint โ€” declare the image as modified.
  • -transparent-color color โ€” the 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 โ€” the virtual pixel access method.

๐Ÿ’… Image Operators

  • -auto-orient โ€” automatically orient the image.
  • -brightness-contrast geometry โ€” improve the brightness / contrast of the image.
  • -distort method args โ€” distort images according to the 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 the 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

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

๐Ÿ“ how the file format gets figured out

by default, the image format of file is determined by its magic number. so she just knows. ๐Ÿ”ฎ

want to force a specific format? two ways bestie:

  1. put an image format name and a colon in front of the filename, like ps:image
  2. or just make the image type the filename suffix, like image.ps

and if you want file to be standard input or standard output, just write -. iconic behavior honestly.

๐ŸŒˆ the similarity rules

two images count as similar if their difference according to the specified metric and fuzz value is 0.

โš ๏ธ EXCEPT for the normalized cross correlation metric (NCC) โ€” with NCC, two images count as similar when their normalized cross correlation is 1.

and the default metric? NCC. yes, that's the default, remember it. ๐Ÿ“Œ

๐Ÿ’€ exit status (aka the vibe check results)

  • 2 on error โ€” it's giving disaster
  • 0 if the images are similar
  • a value between 0 and 1 if they are not similar

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

ImageMagick-im7.q16(1)

Copyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/share/doc/imagemagick-7-common/html/www/license.html or https://imagemagick.org/license/


okay that's the whole page, you ate it, you're literally a compare expert now. ๐Ÿซถโœจ

this one came from ImageMagick, dated Date: 2009/01/10 01:00:00, and yes, compare-im7.q16(1) is the moment. mwah. ๐Ÿ’…๐Ÿ’–๐ŸŒธ

๐Ÿ“ฆ where this page comes from