Most of you might already be familiar with the Nuxeo Diff plug-in. It displays an interface comparing two documents or two versions of a document and shows the differences between them. Thibaud (our Solutions Architect and Chief Blogs Officer :) ) wrote in details about this plugin in an earlier blog.

Today I will talk about a new plug-in available in Nuxeo Marketplace, Nuxeo Diff Pictures. Using this plug-in, you can go further by comparing two pictures:


  • Of the same format and same dimensions

  • Or of different dimensions and/or picture format, leveraging ImageMagick capabilities


I will walk you through the installation process and show some cool examples of what Nuxeo Diff Pictures can do.

Installation


This plug-in can be installed like any other package from the Nuxeo Marketplace or from the Admin Center. Also, if you install the “Nuxeo Diff Pictures” plug-in from Marketplace, the “Nuxeo Diff” plug-in will be installed too if it was not already there.

Nuxeo Diff Pictures plug-in requires the Nuxeo DAM plug-in (to be able to manage pictures of course!).

How You Can Use It


Step 1: We need two pictures that we can compare. So, download a picture, version it and then modify your picture. Let's take two examples:


  • Add a new object and create a new version (figure 2 below)

  • Convert your image from JPEG to PNG (figure 3 below)


Step 2: On the picture document's History tab, click on the Archived versions sub-tab.

Step 3: Select the two versions you want to compare by checking the corresponding boxes and then click on the Compare button.

The fields for which there are differences between the two versions are displayed in a table.


Figure 1: Comparison of Properties Figure 1: Comparison of Properties

Step 4: To visualize the changes in the picture, click on the icon on the right.

A window pops up showing what's been changed between the two versions.

The dialog also lets the user set-up a "Fuzzy" comparison parameter (to remove noise when comparing JPEGs for instance). The user can also choose the colors used to highlight the differences.


Figure 2: Compare pictures, same format Figure 2: Compare pictures, same format

These options are not available when comparing pictures of different formats/dimensions, but the result in this case is amazing too:


Figure 3: compare pictures, different formats: JPEG and PNG Figure 3: compare pictures, different formats: JPEG and PNG

Give it a try and tell us what you think!