Display Library FAQs

Common display library questions

Why must every media element be wrapped in a custom element?

The custom element is necessary for the library's functionality, including displaying the icon and overlay and loading a WebAssembly module, which performs signed C2PA provenance data extraction and validation.

What if I don't have access to wrap media in the custom element?

We require implementers to wrap the media elements with the custom element for the library to work. If you can't wrap media in the custom element, you may have access to add classes to the images instead. If that's the case, you can add additional JavaScript that wraps media of a certain class. Click here for a code sample.

Can I style elements with CSS?

We are actively iterating on the tool's user interface, so you can expect changes to appear regularly. Our web component utilizes a shadow DOM, which is encapsulated from and, by default, can't be styled with CSS from a light or main DOM stylesheet. On-page customizations may cause unexpected conflicts with improvements we make to the library, so we have not yet exposed customizable elements, the icon, or anything in the overlay. Watch this space, as this may become customizable in the future.

Do I need to register to use this library?

For a limited time, Truepic is offering our library script to anyone, free of use, without needing account registration.