Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Probably I'm missing something because when I run the suggested command line (on Windows 10 using ImageMagick-7.0.8-16-Q16-x64) it just gives me an error:
Thanks again, snibgo! Now it's running just fine! I assume that the resulting numbers have to be interpreted as similarity? So 0.0 means 100% similarity while 0.01 means 99% similarity?!
You will get one png for each corresponding page of the pdf files. The brighter the result the more difference. You can even color code the results using a color LUT image with -clut.
NukaCola wrote:I assume that the resulting numbers have to be interpreted as similarity? So 0.0 means 100% similarity while 0.01 means 99% similarity?!
Yes. %[fx:mean] is a number typically from 0.0 to 1.0. 0.0 means the images are identical. 1.0 means they are totally different (eg one is red and the other is cyan).
The mean difference can be greater than 1.0 when using HDRI and input pixel values are outside the range 0 to 100%.
Sorry for bumping my old question, but I seem to be unable to format the difference images. At the moment the difference images are white and in my case the differences are just tiny so it's quite hard to find them on the screen. I got the hope that inversed colours will make it easier to spot the difference, so basically I would like to get black background and white differences, just like shown in https://imagemagick.org/Usage/compare/#difference.
But my command is giving me an error. I know I did something wrong so no need to say that but I can't figure out what the problem is.
Hmm it seems as if I am getting white background images only if the images are identical!? In case of a difference the images are dark red on black but... still can't seem to find the difference if it's just a minor one. Any suggestion on how to make even tiny difference visible would be awesome!
"-highlight-color" is available when you are using "magick compare". When you are not using "magick compare", there is no concept of a highlight color, and the option is not available.
Fred showed you how to compare two PDF documents with the same number of pages, using a "null:" and "-compose difference -layers composite". Each output is black where there is no difference, and lighter means there is some difference.
NukaCola wrote:Hmm it seems as if I am getting white background images only if the images are identical!?
With what commands, and what input PDF files? If the inputs are CMYK, I suggest you convert them to sRGB.
I have no idea what that "null:" is basically used for? Anyway, yes the differences images are black, but the differences are hard to spot since they are so small and marked with dark red. For big pages, this is could be a real challenge to spot the difference. That's why I wanted to change the highlight colour.
Note that it was just the first image of the whole series of images that was white.
The other idea I had was to simply export the PDFs to PNGs using imagemagick and comparing the images with P4Merge. This works quite fine even if it's a bit overcomplicated but at least I am getting an idea what might be wrong in the PDF.