Do you know a webpage appearance comparator?

后端 未结 8 502
日久生厌
日久生厌 2020-12-16 20:31

I need a tool to compare the design of a website, I do not want to compare the HTML code only, but the output design.

Is this even possible? also is there any openso

相关标签:
8条回答
  • 2020-12-16 21:08

    The keyword you're looking for is "diff".

    A good program that can show you the differences between two files (html markup or other) would be ExamDiff for windows.

    0 讨论(0)
  • 2020-12-16 21:12

    In modern webpages the appearance is controlled by various 'things': html code, css styles and images at least (also javascript in some pages). Simple text-based diff programs are not enough because their output can be irrelevant to the webpage appearance (i.e. cleaning up css can show many differences but the rendered webpage remains the same).

    For simpler pages HTML Match mentioned above could do the job. If I have to compare the design of two "complex" pages (including layout, space, image and text changes) I would do a two-step approach:

    1. Run a diff tool on the html sources to highlight the textual content differences. Then I would modify one of the pages to show the same content as the other (in order to make the next step more accurate and 'focused' to show 'real' layout changes). Of course it works only with very similar html.
    2. Load the pages in the same web browser, get some screenshots from the rendered output at fixed positions and compare the images (i.e. with ImageMagick). It should show all visual differences in the rendered output.

    It is not perfect but should work.

    [UPDATE] HTML Match seems dead, see this answer for an alternative solution.

    0 讨论(0)
提交回复
热议问题