Remove GIF Metadata in Java

Remove metadata properties from GIF and many other popular documents, images and multimedia file formats using GroupDocs.Metadata for Java API.

Download Free Trial

About GroupDocs.Metadata for Java API

GroupDocs.Metadata for Java is an advanced metadata fields manipulation solution to easily read, add, update, delete, find, compare, exchange and export metadata information from images and document formats without using any external software. Remove metadata details from Word documents, Excel spreadsheets, PowerPoint presentations, Outlook emails, OneNote, Visio, Project, PDF, AutoCAD, ZIp, Audio and Video file formats along with the support for working with many other metadata processing features.

Steps for Removing GIF Metadata in Java

GroupDocs.Metadata makes it easy for Java developers to delete metadata information from GIF files from within their applications by implementing a few easy steps.

  • Load the GIF file to be updated.
  • Pass a search predicate to the RemoveProperties method.
  • Check the number of properties that were actually removed
  • Save the changes.

System Requirements

GroupDocs.Metadata 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 installled on your system.

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Development Environment: NetBeans, Intellij IDEA, Eclipse etc
  • Java Runtime Environment: J2SE 6.0 and above
  • Get the latest version of GroupDocs.Metadata for Java from Maven

try (Metadata metadata = new Metadata("input.gif")) {
	
	// Remove all mentions of any people contributed in file creation
	// Remove a custom property with the specified name         
	int affected = metadata.removeProperties(new FallsIntoCategorySpecification(Tags.getPerson()).or(new WithNameSpecification("CustomProperty")));

	System.out.println(String.format("Affected properties: %s", affected));

	metadata.save("output.gif");
}

Live Demos to Remove Metadata

Remove metadata information of GIF file right now by visiting GroupDocs.Metadata Live Demos website.
The live demo has the following benefits

No need to download GroupDocs API.

No need to write any code

Just upload the source file to have an instant display.

Get the download link to save the file on your machine.

About GIF File Format

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

Removing Metadata Of Other File Formats

Multi format documents and images metadata removing API for Java. Remove metadata details of some of the popular file formats as stated below.

Remove PDF Metadata

(Adobe Portable Document Format)

Remove DOC Metadata

(Microsoft Word Document)

Remove DOCM Metadata

(Microsoft Word Macro-Enabled Document)

Remove DOCX Metadata

(Microsoft Word Open XML Document)

Remove DOT Metadata

(Microsoft Word Document Template)

Remove DOTX Metadata

(Word Open XML Document Template)

Remove XLS Metadata

(Microsoft Excel Binary File Format)

Remove XLSX Metadata

(Microsoft Excel Open XML Spreadsheet)

Remove XLSM Metadata

(Microsoft Excel Macro-Enabled Spreadsheet)

Remove XLTM Metadata

(OOXML Macro Enabled Workbook Template)

Remove PPT Metadata

(PowerPoint Presentation)

Remove PPS Metadata

(Microsoft PowerPoint Slide Show)

Remove PPTX Metadata

(PowerPoint Open XML Presentation)

Remove PPSX Metadata

(PowerPoint Open XML Slide Show)

Remove POTX Metadata

(Microsoft PowerPoint Open XML Template)

Remove POTM Metadata

(Microsoft PowerPoint Template)

Remove PPTM Metadata

(Microsoft PowerPoint Presentation)

Remove PPSM Metadata

(Microsoft PowerPoint Slide Show)

Remove ODS Metadata

(Open Document Spreadsheet)

Remove ODT Metadata

(Open Document Text)

Remove TIFF Metadata

(Tagged Image File Format)

Remove PNG Metadata

(Portable Network Graphic)

Remove GIF Metadata

(Graphical Interchange Format File)

Remove BMP Metadata

(Bitmap File Format)

Remove JP2 Metadata

(JPEG 2000 Core Image File)

Remove WEBP Metadata

(Raster Web Image File Format)

Remove PSD Metadata

(Adobe Photoshop Document)

Remove WMF Metadata

(Windows Metafile)

Remove EMF Metadata

(Enhanced Metafile Format)

Remove MPP Metadata

(Microsoft Project Document)

Remove MSG Metadata

(Microsoft Outlook E-mail Message)

Remove EML Metadata

(E-mail Message)

Remove DWG Metadata

(Autodesk Design Data Formats)

Remove DXF Metadata

(AutoCAD Drawing Interchange)

Remove ONE Metadata

(Microsoft OneNote)

Remove MP3 Metadata

(MPEG Audio Layer III)

Remove WAV Metadata

(Waveform Audio File Format)

Remove DICOM Metadata

(Digital Imaging & Comm in Medicine)

Remove AVI Metadata

(Audio Video Interleave File)

Remove VSD Metadata

(Microsoft Visio 2003-2010 Drawing)

Remove VSDX Metadata

(Microsoft Visio Drawing)

Remove VSS Metadata

(Microsoft Visio 2003-2010 Stencil)

Remove VDX Metadata

(Microsoft Visio 2003-2010 XML Drawing)

Remove VSX Metadata

(Microsoft Visio 2003-2010 XML Stencil)

Remove ZIP Metadata

(Archive File Format)

Remove EPUB Metadata

(Digital E-Book File Format)

Remove VCF Metadata

(Electronic Business Card)