comparing images of different sizes
Posted: 2010-01-13T00:50:25-07:00
I need to remove the margins in pdf files and make sure that the resulting pdfs still visually look the same as the original ones (eg I want to make sure that no part of the content has been accidentally removed). I use convert to convert the original and new pdfs into a set of images and try to compare them.
However after removing the margins, the geometry and print size (as revealed by the command identify) are different. So I can't use compare to compare the two.
Does anyone have any suggestion on how I can compare them?
Also, there are many metrics that compare supports. Ideally I would like a number that indicates "degree of similarity" so I can double check on those who don't pass a certain threshold. What metric(s) would be suitable?
However after removing the margins, the geometry and print size (as revealed by the command identify) are different. So I can't use compare to compare the two.
Does anyone have any suggestion on how I can compare them?
Also, there are many metrics that compare supports. Ideally I would like a number that indicates "degree of similarity" so I can double check on those who don't pass a certain threshold. What metric(s) would be suitable?