Empower your Java applications with images and documents comparison features using GroupDocs.Comparison for Java API. It helps you identify the differences within paragraphs, words, characters, shapes, even the text styles of the compared documents of same format, allows merging the changes and export to a final document. It supports comparing and merging a wide range of documents including PDF, Word, Excel worksheets, PowerPoint presentations, Visio diagrams, Outlook emails, HTML, drawings and image file formats without using any external library.
GroupDocs.Comparison makes it easy for Java developers to compare GIF files within their applications using a few lines of code.
GroupDocs.Comparison for Java APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.
// Compare documents from local file
try (Comparer comparer = new Comparer("C:\\source.gif")) {
comparer.add("C:\\target.gif");
comparer.compare("C:\\result.gif"); // Create result file with the specified name
}
// Compare documents from stream
try (Comparer comparer = new Comparer(new FileInputStream("C:\\source.gif"))) {
comparer.add(new FileInputStream("C:\\target.gif"));
comparer.compare(new FileOutputStream("C:\\result.gif")); // Create result file with the specified name
}
Compare GIF files right now by visiting GroupDocs.Comparison Live Demos website.
The live demo has the following benefits
No need to download API
No need to write any code
Just upload the source file
Get download link to save the file
A GIF or Graphical Interchange Format is a type of highly compressed image. Owned by Unisys, GIF uses the LZW compression algorithm that does not degrade the image quality. For each image GIF typically allow up to 8 bits per pixel and up to 256 colours are allowed across the image. In contrast to a JPEG image, which can display up to 16 million colours and fairly touches the limits of the human eye. Back when the internet emerged, GIFs remained the best choice because they required low bandwidth and compatible for the graphics that consume solid areas of colour. An animated GIF combines numerous images or frames into a single file and displays them in a sequence to generate an animated clip or a short video. The colour limitations are up to 256 for each frame and are likely to be the least suitable for reproducing other images and photographs with colour gradient.
Read More About GIF File FormatMulti format images & documents comparison API for Java. Compare some of the popular file formats below without any external software.
(Adobe Portable Document Format)
(Microsoft Word Document)
(Microsoft Word Macro-Enabled Document)
(Microsoft Word Open XML Document)
(Microsoft Word Document Template)
(Microsoft Word Macro-Enabled Template)
(Word Open XML Document Template)
(Rich Text File Format)
(Plain Text File Format)
(Microsoft Excel Binary File Format)
(Microsoft Excel Open XML Spreadsheet)
(Microsoft Excel macro-enabled template)
(Microsoft Excel Macro-Enabled Spreadsheet)
(Microsoft Excel Binary Spreadsheet File)
(Comma Separated Values File)
(PowerPoint Presentation)
(Microsoft PowerPoint Slide Show)
(PowerPoint Open XML Presentation)
(PowerPoint Open XML Slide Show)
(Microsoft PowerPoint template)
(Microsoft PowerPoint Open XML Template)
(Open Document Spreadsheet)
(OpenDocument Presentation File Format)
(Origin Graph Template)
(Open Document Text)
(Open Document Template)
(Microsoft Visio 2003-2010 XML Drawing)
(JPEG Image)
(Portable Network Graphic)
(Graphical Interchange Format File)
(Bitmap File Format)
(Hyper Text Markup Language)
(Mime HTML)
(MIME Encapsulation of Aggregate HTML)
(Microsoft Outlook E-mail Message)
(E-mail Message)
(Apple Mail E-mail File)
(Microsoft OneNote)
(Microsoft Visio 2003-2010 Drawing)
(Microsoft Visio Drawing)
(Microsoft Visio 2003-2010 Stencil)
(Microsoft Visio 2003-2010 Template)
(Microsoft Visio 2003-2010 XML Drawing)
(CSharp Language)
(Java Language)
(C++ Language)
(JavaScript Language)
(Python Language)
(Ruby Language)