sanitize method

On this page

sanitize

Removes writable metadata properties from the package, recursively affecting all nested packages.

Learn more:

def sanitize(self):
    ...

Returns: int: The number of affected properties.

Example

from groupdocs.metadata import Metadata

with Metadata("input.jpg") as metadata:
    removed = metadata.sanitize()
    print(f"Removed {removed} properties")

See Also

On this page