GroupDocs.Metadata for Node.js via Java

Update Metadata in Webp Files Using JavaScript

Metadata Editor for JavaScript – Edit metadata fields in documents, images, and multimedia files with our API.

Steps to Update Metadata in Webp Using Node.js

GroupDocs.Metadata for Node.js via Java allows to edit metadata in Webp files with a few easy steps.

  1. Load the Webp file to be updated.
  2. Specify a predicate to filter desired metadata properties.
  3. Pass the predicate and new value to the UpdateProperties method.
  4. Save the changes.

// Update the file's last print date/time metadata after printing

// Load file into Metadata class constructor
var metadata = new groupdocs.metadata.Metadata('input.webp');

// Only existing metadata packages are affected. No new packages are added.
var affected = metadata.updateProperties(
    new groupdocs.metadata.ContainsTagSpecification(
        groupdocs.metadata.Tags.getTime().getPrinted()), 
            new groupdocs.metadata.PropertyValue(new Date()));

// Processing result
console.log('Affected properties: ${affected}');

// Save updated file
metadata.save('output.webp');
npm i @groupdocs/groupdocs.metadata
click to copy
copied
More examples Documentation

Edit WEBP Metadata for Node.js Apps

The GroupDocs.Metadata API allows developers to update hidden metadata in various document formats within Node.js via Java applications. Apply, edit, search for, and remove metadata programmatically.

Metadata Configuration

Easy Metadata Integration

GroupDocs.Metadata simplifies adding and editing metadata in documents and files within your Node.js via Java apps. Developers can easily apply, update, or remove metadata.

Comprehensive Metadata Control

The API provides extensive options for customizing metadata. Easily find, remove, or update metadata in files using specialized queries.

Use Native WEBP Features

Leverage built-in metadata features like EXIF for images, which can include camera model, resolution, creation date, and more.

Update the Lyrics Tag in an MP3 File (Example)

This example shows how to update hidden metadata in an MP3 file.

TypeScript


    //  Load file into Metadata class constructor
    var metadata = new groupdocs.metadata.Metadata('input.mp3');
    var root = metadata.getRootPackageGeneric();

    if (root.getLyrics3V2() == null) {
        root.setLyrics3V2(new LyricsTag());
    }

    //  Update lyrics data
    root.getLyrics3V2().setLyrics("[00:01]Test lyrics");
    root.getLyrics3V2().setArtist("test artist");
    root.getLyrics3V2().setAlbum("test album");
    root.getLyrics3V2().setTrack("test track");

    // Add a custom field to the tag
    root.getLyrics3V2().set(new LyricsField("ABC", "custom value"));

    // Save the result
    metadata.save('output.mp3');

About GroupDocs.Metadata for Node.js via Java API

GroupDocs.Metadata for Node.js via Java is an advanced solution for reading, adding, modifying, deleting, searching, comparing, replacing, and exporting metadata from images and documents. Edit metadata in Word, Excel, PowerPoint, Outlook, OneNote, Visio, Project, PDF, AutoCAD, ZIP, audio, and video files, along with many other features.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Metadata for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Edit Metadata in Various File Formats

Multi-format documents and images metadata editing API for Node.js. Retrieve and edit metadata for popular file formats

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English